Refactor radar system
This commit is contained in:
@@ -346,7 +346,7 @@ class TransientRetryTierTest(unittest.TestCase):
|
||||
|
||||
@staticmethod
|
||||
def _stub(behavior) -> _StubService:
|
||||
service = _StubService(master_serial="M", slave_serials=["A", "B"], backend_mode="mock")
|
||||
service = _StubService(master_serial="M", slave_serials=["A", "B"], backend_mode="native")
|
||||
service.behavior = behavior
|
||||
service.collection_calls = 0
|
||||
service.reopen_calls = 0
|
||||
@@ -517,15 +517,9 @@ class PerPointStimulusSwitchingTest(unittest.TestCase):
|
||||
|
||||
def test_service_reports_four_outputs_when_switching(self) -> None:
|
||||
service = MultiDeviceLibreVnaService(
|
||||
master_serial="M", slave_serials=["A", "B"], backend_mode="mock", switch_substage_count=2
|
||||
master_serial="M", slave_serials=["A", "B"], backend_mode="native", switch_substage_count=2
|
||||
)
|
||||
self.assertEqual(service.output_position_count, 4)
|
||||
service.configure(RadarSweepModel(start_hz=1e6, stop_hz=2e6, points=4, if_bandwidth_hz=1e3))
|
||||
collection = service.acquire_collection(collection_id=1)
|
||||
self.assertEqual(len(collection.traces), 4 * 4)
|
||||
self.assertEqual(
|
||||
sorted({trace.combo.output for trace in collection.traces}), [0, 1, 2, 3]
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user