From 08d72e0623c2a281ab22e1184d3488fa3ccdda76 Mon Sep 17 00:00:00 2001 From: Justin Haze Date: Tue, 27 Feb 2024 10:56:34 -0700 Subject: [PATCH] fix cal_adjust bugs --- scos_actions/actions/acquire_sea_data_product.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scos_actions/actions/acquire_sea_data_product.py b/scos_actions/actions/acquire_sea_data_product.py index bb01ffd9..03b5c784 100644 --- a/scos_actions/actions/acquire_sea_data_product.py +++ b/scos_actions/actions/acquire_sea_data_product.py @@ -628,17 +628,17 @@ def capture_iq(self, params: dict) -> dict: nskip = utils.get_parameter(NUM_SKIP, params) num_samples = int(params[SAMPLE_RATE] * duration_ms * 1e-3) # Collect IQ data - cal_adjust = True + self.cal_adjust = True for key, value in params.items(): logger.debug(f"param {key}={value}") self.cal_adjust = utils.get_parameter(CAL_ADJUST, params) - logger.debug(f"cal_adjust={cal_adjust}") + logger.debug(f"cal_adjust={self.cal_adjust}") measurement_result = self.sensor.signal_analyzer.acquire_time_domain_samples( - num_samples, nskip, cal_adjust=cal_adjust + num_samples, nskip, cal_adjust=self.cal_adjust ) # Store some metadata with the IQ measurement_result.update(params) - if cal_adjust: + if self.cal_adjust: measurement_result[ "sensor_cal" ] = self.sensor.signal_analyzer.sensor_calibration_data