Skip to content

Commit

Permalink
check if CAL_ADJUST param exists, slight logging improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jhazentia committed Mar 27, 2024
1 parent 91e3eff commit d06098f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scos_actions/actions/acquire_sea_data_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,14 @@ def capture_iq(self, params: dict) -> dict:
duration_ms = utils.get_parameter(DURATION_MS, params)
nskip = utils.get_parameter(NUM_SKIP, params)
num_samples = int(params[SAMPLE_RATE] * duration_ms * 1e-3)
# Collect IQ data
if logger.getEffectiveLevel() == logging.DEBUG:
for key, value in params.items():
logger.debug(f"param {key}={value}")
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)
if CAL_ADJUST in params:
self.cal_adjust = utils.get_parameter(CAL_ADJUST, params)
logger.debug(f"cal_adjust={self.cal_adjust}")
# Collect IQ data
measurement_result = self.sensor.signal_analyzer.acquire_time_domain_samples(
num_samples, nskip, cal_adjust=self.cal_adjust
)
Expand Down

0 comments on commit d06098f

Please sign in to comment.