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
@@ -240,8 +240,9 @@ def diffuse(measurements):
|
||||
|
||||
def detect(measurements):
|
||||
shimmer = heat_shimmer(measurements) # a diffuse nuisance during heat shimmer is the heat shimmer (8)
|
||||
poor = [e for e in episodes(measurements) if e["kind"] == "Visibility"] # a diffuse nuisance within one of them is it
|
||||
return poor + shimmer + [e for e in diffuse(measurements)
|
||||
eps = episodes(measurements)
|
||||
poor = [e for e in eps if e["kind"] == "Visibility"] # a diffuse nuisance within one of them is it
|
||||
return eps + shimmer + [e for e in diffuse(measurements)
|
||||
if not any(t["start"] <= e["start"] and e["end"] <= t["end"] for t in shimmer + poor)]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user