From a70ce1bed5cec1cbf98f317ea6003cfd12ba10e7 Mon Sep 17 00:00:00 2001 From: Justin Haze Date: Thu, 29 Feb 2024 11:09:51 -0700 Subject: [PATCH] fix bug in multi freq IQ action, small change to mock sigan recompute_sensor_calibration_data --- scos_actions/actions/acquire_stepped_freq_tdomain_iq.py | 6 +++--- scos_actions/hardware/mocks/mock_sigan.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scos_actions/actions/acquire_stepped_freq_tdomain_iq.py b/scos_actions/actions/acquire_stepped_freq_tdomain_iq.py index 39575f8b..cfd53a11 100644 --- a/scos_actions/actions/acquire_stepped_freq_tdomain_iq.py +++ b/scos_actions/actions/acquire_stepped_freq_tdomain_iq.py @@ -130,9 +130,9 @@ def __call__(self, sensor: Sensor, schedule_entry: dict, task_id: int): sensor_cal["compression_point"] = sensor_cal.pop( "1db_compression_point" ) - capture_segment.sensor_calibration = ntia_sensor.Calibration( - **sensor_cal - ) + capture_segment.sensor_calibration = ntia_sensor.Calibration( + **sensor_cal + ) measurement_result["capture_segment"] = capture_segment self.create_metadata(measurement_result, recording_id) diff --git a/scos_actions/hardware/mocks/mock_sigan.py b/scos_actions/hardware/mocks/mock_sigan.py index 49687574..0553ba25 100644 --- a/scos_actions/hardware/mocks/mock_sigan.py +++ b/scos_actions/hardware/mocks/mock_sigan.py @@ -212,7 +212,7 @@ def update_calibration(self, params): def recompute_sensor_calibration_data(self, cal_args: list) -> None: if self.sensor_calibration is not None: self.sensor_calibration_data.update( - self._sensor_calibration.get_calibration_dict(cal_args) + self.sensor_calibration.get_calibration_dict(cal_args) ) else: logger.warning("Sensor calibration does not exist.")