Refactor detector and model management (#23995)

* Refactor detector and model management

* Fix model resolution field
This commit is contained in:
Nicolas Mowen
2026-08-18 16:25:18 -05:00
committed by Josh Hawkins
parent 13a7d8ecae
commit 591464e82f
63 changed files with 2052 additions and 1152 deletions
@@ -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