optimize: the station is read by the tools' data.py, the single reader; benchmark about 1 min

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-16 17:43:17 +01:00
1 parent e52479adf8
commit 2a96d54844
1 file changed
+2 -2
+2 -2
View File
@@ -18,7 +18,7 @@ Given by the caller, in the request; any other context or rule it gives (files t
Derived from `<ANALYSIS>/request.json`:
- `STATION`: `<DATA>/<station>` (read by `DETECTORS/scripts/data.py`);
- `STATION`: `<DATA>/<station>` (read by `TOOLS/scripts/data.py`, the single reader of the measurements);
- `FROM`: the day of `start`; `TO`: the day after the day of `end` (UTC days, YYYY-MM-DD, `TO` excluded);
- the labels of the range: `<LABELS>/<station>.jsonl` (the analysis's labels are submitted there);
- `REFERENCE`, the reference truth for the non-regression: `--labels <LABELS> --data <DATA>`;
@@ -31,7 +31,7 @@ Derived from `<ANALYSIS>/request.json`:
- events: `python3 <DETECTORS>/scripts/categories.py <STATION> --from <FROM> --to <TO>`
- sensors: `python3 <DETECTORS>/bench/sensors.py <STATION> --from <FROM> --to <TO>`
- range score (the goal): `python3 <DETECTORS>/bench/score.py <STATION> --labels <LABELS>/<station>.jsonl --from <FROM> --to <TO>`; it exits with an error if no label touches the range: note it in the summary, touch nothing in the detectors and go to part 2.
- benchmark (the non-regression, about 3 min): `python3 <DETECTORS>/bench/regression.py <REFERENCE>`
- benchmark (the non-regression, about 1 min): `python3 <DETECTORS>/bench/regression.py <REFERENCE>`
The measures of a step: `<range score> > <OUT>/range-<step>.txt 2>&1` and `<benchmark> > <OUT>/benchmark-<step>.txt 2>&1`.