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.
- {tpattern-0.1.8/tpattern.egg-info → tpattern-0.1.9}/PKG-INFO +1 -1
- {tpattern-0.1.8 → tpattern-0.1.9}/pyproject.toml +1 -1
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/__init__.py +1 -1
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/io.py +10 -7
- {tpattern-0.1.8 → tpattern-0.1.9/tpattern.egg-info}/PKG-INFO +1 -1
- {tpattern-0.1.8 → tpattern-0.1.9}/LICENSE +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/README.md +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/setup.cfg +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_calibrated_pins.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_contrast.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_dedup.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_guided.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_null_compare.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_report_dendrogram.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_reproduction.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_sofcoder.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_support_reporting.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tests/test_synthetic.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/advisor.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/ci.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/contrast.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/detect.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/diagnostics.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/guided.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/methods.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/pattern.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/randomise.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/report.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/significance.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/synthetic.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern/viz.py +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern.egg-info/SOURCES.txt +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern.egg-info/dependency_links.txt +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern.egg-info/requires.txt +0 -0
- {tpattern-0.1.8 → tpattern-0.1.9}/tpattern.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tpattern"
|
|
7
|
-
version = "0.1.
|
|
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.
|
|
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 =
|
|
120
|
-
obs_end: str | 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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
|
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
|
|
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
|