Skip to content

Commit

Permalink
Update logger and result outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Oct 16, 2024
1 parent 5a010ac commit 4b9af01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scos_actions/actions/calibrate_y_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,15 @@ def calibrate(self, params: dict):
sigan_params, utils.get_datetime_str_now(), gain, noise_figure, temp_c
)
else:
logger.warn(f"Not updating calibration. NF: {noise_figure}, Gain: {gain}")
logger.warning(f"Calibration result is NaN at {params[FREQUENCY]}:")
logger.warning(f"\tNF: {noise_figure}, Gain: {gain}")
# Debugging
noise_floor_dBm = convert_watts_to_dBm(Boltzmann * temp_k * enbw_hz)
logger.debug(f"Noise floor: {noise_floor_dBm:.2f} dBm")
logger.debug(f"Noise figure: {noise_figure:.2f} dB")
logger.debug(f"Gain: {gain:.2f} dB")

# Detail results contain only FFT version of result for now
return f"Noise Figure: {noise_figure}, Gain: {gain}"
return f"Noise Figure: {noise_figure:.2f}, Gain: {gain:.2f}"

@property
def description(self):
Expand Down

0 comments on commit 4b9af01

Please sign in to comment.