From 690e1475ff0ca58e7cfdc3052a59a39ae3425142 Mon Sep 17 00:00:00 2001 From: Doug Boulware Date: Fri, 1 Dec 2023 11:51:52 -0700 Subject: [PATCH] change power sensor names. --- scos_actions/actions/acquire_sea_data_product.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scos_actions/actions/acquire_sea_data_product.py b/scos_actions/actions/acquire_sea_data_product.py index 1ed18b19..27611c19 100644 --- a/scos_actions/actions/acquire_sea_data_product.py +++ b/scos_actions/actions/acquire_sea_data_product.py @@ -835,18 +835,18 @@ def add_temperature_and_humidity_sensors(self, all_switch_status: dict, switch_d def add_power_sensors(self, all_switch_status: dict, switch_diag: dict ): switch_diag["power_sensors"] = [] - if "5vdc_monitor" in all_switch_status: + if "power_monitor5v" in all_switch_status: switch_diag["power_sensors"].append( - {"name": "5v Monitor", "value": all_switch_status["5vdc_monitor"], "expected_value": 5.0}) - if "15vdc_monitor" in all_switch_status: + {"name": "5v Monitor", "value": all_switch_status["power_monitor5v"], "expected_value": 5.0}) + if "power_monitor15v" in all_switch_status: switch_diag["power_sensors"].append( - {"name": "15v Monitor", "value": all_switch_status["15vdc_monitor"], "expected_value": 15.0}) - if "24vdc_monitor" in all_switch_status: + {"name": "15v Monitor", "value": all_switch_status["power_monitor15v"], "expected_value": 15.0}) + if "power_monitor24v" in all_switch_status: switch_diag["power_sensors"].append( - {"name": "24v Monitor", "value": all_switch_status["24vdc_monitor"], "expected_value": 24.0}) - if "28vdc_monitor" in all_switch_status: + {"name": "24v Monitor", "value": all_switch_status["power_monitor24v"], "expected_value": 24.0}) + if "power_monitor28v" in all_switch_status: switch_diag["power_sensors"].append( - {"name": "28v Monitor", "value": all_switch_status["28vdc_monitor"], "expected_value": 28.0}) + {"name": "28v Monitor", "value": all_switch_status["power_monitor28v"], "expected_value": 28.0}) def add_heating_cooling(self, all_switch_status: dict, switch_diag: dict): if "heating" in all_switch_status: