diff --git a/scos_actions/actions/interfaces/measurement_action.py b/scos_actions/actions/interfaces/measurement_action.py index e7ad088a..1400937a 100644 --- a/scos_actions/actions/interfaces/measurement_action.py +++ b/scos_actions/actions/interfaces/measurement_action.py @@ -67,15 +67,16 @@ def get_calibration(self, measurement_result: dict) -> ntia_sensor.Calibration: noise_figure=round( measurement_result["applied_calibration"]["noise_figure"], 3 ), - temperature=round( - self.sensor.sensor_calibration_data["temperature"], 1 - ), reference=measurement_result["reference"], ) if "compression_point" in measurement_result["applied_calibration"]: cal_meta.compression_point = measurement_result["applied_calibration"][ "compression_point" ] + if "temperature" in self.sensor.sensor_calibration_data: + cal_meta.temperature = round( + self.sensor.sensor_calibration_data["temperature"], 1 + ) return cal_meta def create_metadata(