Remove dataset replay
This commit is contained in:
@@ -556,7 +556,6 @@ class ProcessSupervisor:
|
||||
producer_modules = {
|
||||
"python_app.scripts.matrix_raw_producer",
|
||||
"python_app.scripts.kamil_adc_raw_producer",
|
||||
"python_app.scripts.replay_raw_producer",
|
||||
}
|
||||
try:
|
||||
raw = (Path("/proc") / str(pid) / "cmdline").read_bytes()
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user