From 719d1b1d9b06c969f144d5955cb165dc74dda038 Mon Sep 17 00:00:00 2001 From: Anthony Romaniello Date: Tue, 16 Jan 2024 12:59:10 -0500 Subject: [PATCH] Update sample_debug.py --- sample_debug.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sample_debug.py b/sample_debug.py index 8ff6d5b9..f00a661b 100644 --- a/sample_debug.py +++ b/sample_debug.py @@ -6,6 +6,7 @@ from scos_actions.actions.acquire_single_freq_fft import SingleFrequencyFftAcquisition from scos_actions.hardware.mocks.mock_sigan import MockSignalAnalyzer +from scos_actions.hardware.sensor import Sensor from scos_actions.signals import measurement_action_completed parameters = { @@ -17,6 +18,7 @@ "nffts": 300, "nskip": 0, "classification": "UNCLASSIFIED", + "calibration_adjust": False, } schedule_entry_json = { "name": "test_m4s_multi_1", @@ -50,10 +52,9 @@ def callback(sender, **kwargs): measurement_action_completed.connect(callback) -action = SingleFrequencyFftAcquisition( - parameters=parameters, sigan=MockSignalAnalyzer(randomize_values=True) -) -action(schedule_entry_json, 1) +action = SingleFrequencyFftAcquisition(parameters) +sensor = Sensor(signal_analyzer=MockSignalAnalyzer(randomize_values=True)) +action(sensor, schedule_entry_json, 1) print("metadata:") print(json.dumps(_metadata, indent=4)) print("finished")