Index: tests/test_dg_calibration.py =================================================================== diff -u -r43e8345862c72340680c045e53b310aa291513a6 -ra26b886c2bbe75c1292afa150a63d1d9b8026b3b --- tests/test_dg_calibration.py (.../test_dg_calibration.py) (revision 43e8345862c72340680c045e53b310aa291513a6) +++ tests/test_dg_calibration.py (.../test_dg_calibration.py) (revision a26b886c2bbe75c1292afa150a63d1d9b8026b3b) @@ -19,18 +19,20 @@ #print(cal.DG_CALIBRATION_RECORD) #exit(0) - status = True - cal.DG_CALIBRATION_RECORD['pumps']['concentrate_1']['step_speed_2_flow_ratio'][1] = 34.2 - cal.DG_CALIBRATION_RECORD['pumps']['drain']['cal_time'][1] = 96321 - cal.DG_CALIBRATION_RECORD['pumps']['ro']['gain_3_ratio'][1] = 45.69 - cal.DG_CALIBRATION_RECORD['volumes']['drain_line']['volume'][1] = 125.8 - cal.DG_CALIBRATION_RECORD['volumes']['drain_line']['crc'][1] = 78 - cal.DG_CALIBRATION_RECORD['volumes']['pre_ro_purge']['volume'][1] = 125.8 - cal.DG_CALIBRATION_RECORD['volumes']['reservoir_1']['max_residual_fluid'][1] = 85.36 - cal.DG_CALIBRATION_RECORD['bicarb_concentrates']['bicarb_conc_3']['reserved_space'][1] = 85.36 - cal.DG_CALIBRATION_RECORD['fans']['fan_2']['reserved_space_2'][1] = 456.25 - print(cal.DG_CALIBRATION_RECORD) + status = False + cal.dg_calibration_record['pumps']['concentrate_1']['step_speed_2_flow_ratio'][1] = 34.2 + cal.dg_calibration_record['pumps']['drain']['cal_time'][1] = 96321 + cal.dg_calibration_record['pumps']['ro']['gain_3_ratio'][1] = 45.69 + cal.dg_calibration_record['volumes']['drain_line']['volume'][1] = 125.8 + cal.dg_calibration_record['volumes']['drain_line']['crc'][1] = 78 + cal.dg_calibration_record['volumes']['pre_ro_purge']['volume'][1] = 125.8 + cal.dg_calibration_record['volumes']['reservoir_1']['max_residual_fluid'][1] = 85.36 + cal.dg_calibration_record['bicarb_concentrates']['bicarb_conc_3']['reserved_space'][1] = 85.36 + cal.dg_calibration_record['fans']['fan_2']['reserved_space_2'][1] = 456.25 + + print(cal.dg_calibration_record) + try: if status: dara = [] @@ -49,7 +51,7 @@ else: cal.set_dg_calibration_data() - print(cal.DG_CALIBRATION_RECORD) + print(cal.dg_calibration_record) except KeyboardInterrupt: f.close()