Index: tests/test_conductivity.py =================================================================== diff -u -r0251ff11e97b1f71ddf669272a343639db9373c6 -r6b85dbd8f5d6b077c0d2e3ed28337caa9be4f5f1 --- tests/test_conductivity.py (.../test_conductivity.py) (revision 0251ff11e97b1f71ddf669272a343639db9373c6) +++ tests/test_conductivity.py (.../test_conductivity.py) (revision 6b85dbd8f5d6b077c0d2e3ed28337caa9be4f5f1) @@ -1,3 +1,18 @@ +########################################################################### +# +# Copyright (c) 2022-2022 Diality Inc. - All Rights Reserved. +# +# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +# WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +# +# @file test_conductivity.py +# +# @author (last) Hung Nguyen +# @date (last) 16-Feb-2022 +# @author (original) Systems +# @date (original) 15-Feb-2022 +# +############################################################################ import sys import time from datetime import datetime @@ -43,6 +58,7 @@ cd2_raw = cond_data[7] # Temperature + # dg.temperatures.cmd_temperatures_value_override(0, 38.0) tpi = dg.temperatures.get_temperatures_values(0) tpo = dg.temperatures.get_temperatures_values(2) td1 = dg.temperatures.get_temperatures_values(3) @@ -52,34 +68,6 @@ dg_mode = dg.get_operation_mode() dg_sub_mode = dg.get_operation_sub_mode() - if dg_mode == 6: - - if dg_sub_mode == 1: # TEST INLET WATER - dg.temperatures.cmd_temperatures_value_override(17, 31.0) # override the TPi temperature sensor - dg.conductivity_sensors.cmd_conductivity_sensor_override(0, 2100) # override CPI conductivity - dg.pressures.cmd_pressure_override(0, 30) # override inlet water pressure - - elif dg_sub_mode == 4: # TEST BICARB CONDUCTIVITY - dg.temperatures.cmd_temperatures_value_override(17, 34.0) # override the TPi temperature sensor - dg.conductivity_sensors.cmd_conductivity_sensor_override(3, 6821.0) # bicarb CD2 conductivity - - elif dg_sub_mode == 5: # TEST ACID CONDUCTIVITY - dg.temperatures.cmd_temperatures_value_override(17, 35.0) # override the TPi temperature sensor - dg.conductivity_sensors.cmd_conductivity_sensor_override(2, 12252.0) # Acid CD1 conductivity - dg.conductivity_sensors.cmd_conductivity_sensor_override(3, 12252.0) # Bicarb CD2 conductivity - - elif dg_sub_mode == 6: # TEST PRODUCE DIALYSATE - dg.temperatures.cmd_temperatures_value_override(17, 36.0) # override the TPi temperature sensor - dg.conductivity_sensors.cmd_conductivity_sensor_override(0, 2100) # override the inlet conductivity - - elif dg_sub_mode == 7: # TEST DELIVER DIALYSATE - dg.temperatures.cmd_temperatures_value_override(17, 37.0) # override the TPi temperature sensor - dg.conductivity_sensors.cmd_conductivity_sensor_override(0, 2100) # override the inlet conductivity - - else: - dg.temperatures.cmd_temperatures_value_override(17, 30.0) # override the TPi temperature sensor - dg.conductivity_sensors.cmd_conductivity_sensor_override(0, 2100) # override the inlet conductivity - # flows fmp = dg.ro_pump.get_measured_flow_rate() raw_fmp = dg.ro_pump.get_ro_pump_measured_raw_flow_rate_mlp()