One computation per module, an explicit list of detectors; obstruction.py removed
Each module returns every family it finds (kind); categories.py imports DETECTORS by name (no introspection, no CONTEXT) and drops from Obstruction the sensors already in an overlapping Target issue episode (formerly obstruction.py). No detector computed twice. Benchmark identical to the baseline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5e9a7aa9d1
commit
5f085bf5ff
5 files changed
+24
-69
No files matched your search
@@ -37,7 +37,6 @@ both axes; one day is enough (a day without noise does not happen by accident);
|
||||
"""
|
||||
import statistics
|
||||
|
||||
import displacement
|
||||
from data import is_reference, iso
|
||||
|
||||
CALM = 0.25 # share of the other sensors rejected, at most, for a calm instant
|
||||
@@ -171,5 +170,4 @@ def stuck(measurements, min_instants):
|
||||
|
||||
|
||||
def detect(measurements):
|
||||
return sorted((e for e in episodes(measurements) + displacement.episodes(measurements) if e["kind"] == "Target issue"),
|
||||
key=lambda e: e["start"])
|
||||
return episodes(measurements)
|
||||
Reference in new issue
Block a user