Remove dataset replay

This commit is contained in:
Ayzen
2026-10-06 14:31:07 +03:00
parent 4947d5a14e
commit aef549ea76
15 changed files with 32 additions and 650 deletions
+4 -10
View File
@@ -11,21 +11,15 @@ from python_app.models.json_fields import json_object, read_str
def acquisition_command(config_path: Path) -> list[str]:
"""Select replay first, then the configured model's acquisition producer."""
"""Select the configured model's acquisition producer."""
payload = json_object(json.loads(config_path.read_text(encoding="utf-8")), "run config")
radar = json_object(payload.get("radar"), "radar")
replay = json_object(radar.get("replay"), "radar.replay")
dataset = read_str(replay, "dataset_dir", "")
model = read_str(radar, "model", RadarModel().model)
producers = {
"librevna": "matrix_raw_producer",
"librevna_multi": "matrix_raw_producer",
"kamil_adc": "kamil_adc_raw_producer",
}
if dataset.strip():
module = "replay_raw_producer"
else:
if model not in producers:
raise ValueError(f"Unsupported radar model: {model}")
module = producers[model]
return [sys.executable, "-m", f"python_app.scripts.{module}", "--config", str(config_path)]
if model not in producers:
raise ValueError(f"Unsupported radar model: {model}")
return [sys.executable, "-m", f"python_app.scripts.{producers[model]}", "--config", str(config_path)]