Refactor detector and model management

This commit is contained in:
Nicolas Mowen
2026-08-14 14:00:00 -06:00
parent 74c932c3f5
commit 1831c5818a
46 changed files with 1899 additions and 1065 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -102,11 +102,12 @@ def generate_config():
snapshot = config.model_dump()
# Runtime-computed fields not in the Pydantic dump
all_attrs = set()
for attrs in snapshot.get("model", {}).get("attributes_map", {}).values():
all_attrs.update(attrs)
snapshot["model"]["all_attributes"] = sorted(all_attrs)
snapshot["model"]["colormap"] = {}
for model in snapshot.get("models", []):
all_attrs = set()
for attrs in model.get("attributes_map", {}).values():
all_attrs.update(attrs)
model["all_attributes"] = sorted(all_attrs)
model["colormap"] = {}
return snapshot