tpattern 0.1.8__tar.gz → 0.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {tpattern-0.1.8/tpattern.egg-info → tpattern-0.1.9}/PKG-INFO +1 -1
  2. {tpattern-0.1.8 → tpattern-0.1.9}/pyproject.toml +1 -1
  3. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/__init__.py +1 -1
  4. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/io.py +10 -7
  5. {tpattern-0.1.8 → tpattern-0.1.9/tpattern.egg-info}/PKG-INFO +1 -1
  6. {tpattern-0.1.8 → tpattern-0.1.9}/LICENSE +0 -0
  7. {tpattern-0.1.8 → tpattern-0.1.9}/README.md +0 -0
  8. {tpattern-0.1.8 → tpattern-0.1.9}/setup.cfg +0 -0
  9. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_calibrated_pins.py +0 -0
  10. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_contrast.py +0 -0
  11. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_dedup.py +0 -0
  12. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_guided.py +0 -0
  13. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_null_compare.py +0 -0
  14. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_report_dendrogram.py +0 -0
  15. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_reproduction.py +0 -0
  16. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_sofcoder.py +0 -0
  17. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_support_reporting.py +0 -0
  18. {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_synthetic.py +0 -0
  19. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/advisor.py +0 -0
  20. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/ci.py +0 -0
  21. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/contrast.py +0 -0
  22. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/detect.py +0 -0
  23. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/diagnostics.py +0 -0
  24. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/guided.py +0 -0
  25. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/methods.py +0 -0
  26. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/pattern.py +0 -0
  27. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/randomise.py +0 -0
  28. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/report.py +0 -0
  29. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/significance.py +0 -0
  30. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/synthetic.py +0 -0
  31. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/viz.py +0 -0
  32. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern.egg-info/SOURCES.txt +0 -0
  33. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern.egg-info/dependency_links.txt +0 -0
  34. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern.egg-info/requires.txt +0 -0
  35. {tpattern-0.1.8 → tpattern-0.1.9}/tpattern.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tpattern
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Open, auditable temporal & sequential pattern analysis (T-patterns) for sport and behaviour
5
5
  Author-email: Andrew Callaway <acallaway@bournemouth.ac.uk>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tpattern"
7
- version = "0.1.8"
7
+ version = "0.1.9"
8
8
  description = "Open, auditable temporal & sequential pattern analysis (T-patterns) for sport and behaviour"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -6,7 +6,7 @@ behavior: T-patterns and their detection. Behavior Research Methods,
6
6
  Instruments, & Computers, 32(1), 93-110.
7
7
  """
8
8
 
9
- __version__ = "0.1.8" # defined before submodule imports (methods.py reads it)
9
+ __version__ = "0.1.9" # defined before submodule imports (methods.py reads it)
10
10
 
11
11
  from .io import Observation, read_observation, read_sample, read_table, read_sofcoder
12
12
  from .pattern import Instance, Pattern
@@ -116,8 +116,8 @@ def read_sample(folder: str | Path, pattern: str = "*.txt") -> list[Observation]
116
116
 
117
117
  def read_table(path: str | Path, *, observation: str = "observation",
118
118
  event: str = "event", start: str = "start",
119
- end: str | None = None, obs_start: str | None = None,
120
- obs_end: str | None = None, build_event_from: list[str] | None = None,
119
+ end: str | None = "end", obs_start: str | None = "obs_start",
120
+ obs_end: str | None = "obs_end", build_event_from: list[str] | None = None,
121
121
  time_unit: str = "s", sep: str = ",") -> list[Observation]:
122
122
  """Read the canonical flat event table (see SCHEMA.md) into a sample.
123
123
 
@@ -135,11 +135,14 @@ def read_table(path: str | Path, *, observation: str = "observation",
135
135
  taken from the min/max event `start`.
136
136
  obs_start, obs_end : str, optional
137
137
  Columns giving the *observation window* (constant within an observation).
138
- Supply these when the unit has real bounds that extend beyond its first and
139
- last event — a possession, rally or bout usually does. The window length
140
- T = obs_end - obs_start is the denominator of the NX/T baseline, so deriving
141
- it from the events instead will shift every baseline probability. If absent,
142
- the window falls back to the first/last event time.
138
+ These default to the conventional column names ("obs_start"/"obs_end"), so a
139
+ table that includes them is read correctly with **no arguments**; they are
140
+ ignored silently if the columns are absent. Supply a window when the unit has
141
+ real bounds that extend beyond its first and last event — a possession, rally
142
+ or bout usually does. The window length T = obs_end - obs_start is the
143
+ denominator of the NX/T baseline, so deriving it from the events instead will
144
+ shift every baseline probability. If absent, the window falls back to the
145
+ first/last event time.
143
146
  build_event_from : list[str], optional
144
147
  If given, the event code is built by joining these columns with '_'
145
148
  (for coders who keep the code split across descriptor columns) instead of
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tpattern
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Open, auditable temporal & sequential pattern analysis (T-patterns) for sport and behaviour
5
5
  Author-email: Andrew Callaway <acallaway@bournemouth.ac.uk>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes