Rename kamil_adc to rph_radar and fix its data path

This commit is contained in:
Ayzen
2026-10-06 18:15:18 +03:00
parent aef549ea76
commit a185e61495
94 changed files with 2851 additions and 9485 deletions
+31
View File
@@ -75,6 +75,37 @@ class RemoveLastHistoryTest(unittest.TestCase):
class RuntimeSignatureTest(unittest.TestCase):
def test_reference_clock_changes_multi_device_history_only(self) -> None:
for model in ("librevna_multi", "librevna", "rph_radar"):
config = RunConfigModel()
config.radar.model = model
before = build_run_history_signature(config)
config.radar.multi_device.force_external_reference = not config.radar.multi_device.force_external_reference
with self.subTest(model=model):
self.assertEqual(before != build_run_history_signature(config), model == "librevna_multi")
def test_adc_key_and_history_follow_measurement_not_launch_paths(self) -> None:
original = RunConfigModel()
original.radar.model, original.radar.driver_mode = "rph_radar", "native"
for section, field, value, changes_identity in (
("rph_radar.phase_calibration", "phase1_rad", 301.0, True),
("rph_radar.band", "points", 1024, True),
("rph_radar.band", "start_hz", 2.2e9, True),
("rph_radar", "executable_path", "/new/collector", False),
("rph_radar", "tty_path", "/new/tty", False),
("sweep", "if_bandwidth_hz", 999.0, False),
("", "serial", "unused ADC serial", False),
):
changed = original.clone()
target = changed.radar
for part in section.split(".") if section else ():
target = getattr(target, part)
setattr(target, field, value)
with self.subTest(section=section, field=field):
self.assertEqual(original.radar_key() != changed.radar_key(), changes_identity)
self.assertEqual(build_run_history_signature(original) != build_run_history_signature(changed),
changes_identity)
def test_every_ring_endpoint_setting_requires_restart(self) -> None:
original = RunConfigModel()
signature = build_processor_run_signature(original)