Skip to content

Commit

Permalink
fix cal_adjust bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhazentia committed Feb 27, 2024
1 parent 322d096 commit 08d72e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scos_actions/actions/acquire_sea_data_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08d72e0

Please sign in to comment.