Scripts: shared helpers in common.py, no tool imports another; CLI and outputs unchanged
data.py stays the reader (METRIC_RE now also captures the file date, same matches); common.py holds columns, steps, noise, sensor list, runs, file names. Duplicated run grouping, pose gaps, step bucketing, --table/--outside parsing removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c1719cbd1d
commit
6ed4c420e1
13 files changed
+308
-359
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
||||
"""Reading a station's data for the diagnostic agent (standard library).
|
||||
"""Reading a station folder (standard library only): the one reader of the app, the reading tools and the detectors.
|
||||
|
||||
Formats: tools/DATA.md. Every time is UTC.
|
||||
"""
|
||||
@@ -98,7 +98,7 @@ def load_camera(folder):
|
||||
|
||||
|
||||
IDENTIFIERS = re.compile(r"^(SIM_CCID|ip(_.*)?)$") # station identifiers: never read
|
||||
METRIC_RE = re.compile(r"^(.+?)_\d{4}_\d{2}_\d{2}_")
|
||||
METRIC_RE = re.compile(r"^(.+?)_(\d{4})_(\d{2})_(\d{2})_") # name, then the date of the file (one CSV per metric and per day)
|
||||
|
||||
|
||||
def load_metrics(folder):
|
||||
|
||||
Reference in new issue
Block a user