Index: simulator/plugins/PostTreatment/loader.py =================================================================== diff -u -ra1d61285efe44dfa5bddcfca2a61d69e5841ee6c -rae63fbc76b4638ffdcdaad7b69648beeee3340c3 --- simulator/plugins/PostTreatment/loader.py (.../loader.py) (revision a1d61285efe44dfa5bddcfca2a61d69e5841ee6c) +++ simulator/plugins/PostTreatment/loader.py (.../loader.py) (revision ae63fbc76b4638ffdcdaad7b69648beeee3340c3) @@ -12,7 +12,7 @@ from dialin.ui.hd_simulator import HDSimulator from dialin.ui.hd_simulator import RequestRejectReasons -from dialin.utils.conversions import integer_to_bytearray, float_to_bytearray +from dialin.utils.conversions import unsigned_to_bytearray, float_to_bytearray # plugin specific # -- None -- @@ -165,19 +165,19 @@ """ parameters = [ # column 1 - integer_to_bytearray(int(self.leBloodFlowRate.text())), - integer_to_bytearray(int(self.leDialysateFlowRate.text())), - integer_to_bytearray(int(self.leTreatmentDuration.text())), - integer_to_bytearray(int(self.leActualTreatmentDuration.text())), - integer_to_bytearray(int(self.leAcidConcentrateType.text())), - integer_to_bytearray(int(self.leBicarbonateConcentrateType.text())), - integer_to_bytearray(int(self.lePotassiumConcentration.text())), - integer_to_bytearray(int(self.leCalciumConcentration.text())), - integer_to_bytearray(int(self.leBicarbonateConcentration.text())), - integer_to_bytearray(int(self.leSodiumConcentration.text())), + unsigned_to_bytearray(int(self.leBloodFlowRate.text())), + unsigned_to_bytearray(int(self.leDialysateFlowRate.text())), + unsigned_to_bytearray(int(self.leTreatmentDuration.text())), + unsigned_to_bytearray(int(self.leActualTreatmentDuration.text())), + unsigned_to_bytearray(int(self.leAcidConcentrateType.text())), + unsigned_to_bytearray(int(self.leBicarbonateConcentrateType.text())), + unsigned_to_bytearray(int(self.lePotassiumConcentration.text())), + unsigned_to_bytearray(int(self.leCalciumConcentration.text())), + unsigned_to_bytearray(int(self.leBicarbonateConcentration.text())), + unsigned_to_bytearray(int(self.leSodiumConcentration.text())), float_to_bytearray(float(self.leDialysateTemperature.text())), - integer_to_bytearray(int(self.leDialyzerType.text())), - integer_to_bytearray(int(self.leTreatmentDateTime.text())), + unsigned_to_bytearray(int(self.leDialyzerType.text())), + unsigned_to_bytearray(int(self.leTreatmentDateTime.text())), float_to_bytearray(float(self.leAverageBloodFlow.text())), float_to_bytearray(float(self.leAverageDialysateFlow.text())), float_to_bytearray(float(self.leDialysateVolumeUsed.text())), @@ -187,18 +187,18 @@ float_to_bytearray(float(self.leActualUFVolume.text())), float_to_bytearray(float(self.leTargetUFRate.text())), float_to_bytearray(float(self.leActualUFRate.text())), - integer_to_bytearray(int(self.leSalineBolusVolume.text())), - integer_to_bytearray(int(self.leHeparinType.text())), - integer_to_bytearray(int(self.leHeparinConcentration.text())), + unsigned_to_bytearray(int(self.leSalineBolusVolume.text())), + unsigned_to_bytearray(int(self.leHeparinType.text())), + unsigned_to_bytearray(int(self.leHeparinConcentration.text())), float_to_bytearray(float(self.leHeparinBolusVolume.text())), float_to_bytearray(float(self.leHeparinDispenseRate.text())), - integer_to_bytearray(int(self.leHeparinPreStop.text())), + unsigned_to_bytearray(int(self.leHeparinPreStop.text())), float_to_bytearray(float(self.leHeparinDeliveredVolume.text())), float_to_bytearray(float(self.leAverageArterialPressure.text())), float_to_bytearray(float(self.leAverageVenousPressure.text())), - integer_to_bytearray(int(self.leEndTreatmentEarlyAlarm.text())), - integer_to_bytearray(int(self.leDeviceID.text())), - integer_to_bytearray(int(self.leWaterSampleTestResult.text())) + unsigned_to_bytearray(int(self.leEndTreatmentEarlyAlarm.text())), + unsigned_to_bytearray(int(self.leDeviceID.text())), + unsigned_to_bytearray(int(self.leWaterSampleTestResult.text())) ] self.hd_simulator.cmd_send_post_treatment_log_response(True, 0, parameters) @@ -212,19 +212,19 @@ """ parameters = [ # column 1 - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), float_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), float_to_bytearray(0), float_to_bytearray(0), float_to_bytearray(0), @@ -234,18 +234,18 @@ float_to_bytearray(0), float_to_bytearray(0), float_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), float_to_bytearray(0), float_to_bytearray(0), - integer_to_bytearray(0), + unsigned_to_bytearray(0), float_to_bytearray(0), float_to_bytearray(0), float_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0), - integer_to_bytearray(0) + unsigned_to_bytearray(0), + unsigned_to_bytearray(0), + unsigned_to_bytearray(0) ] reason = self.spnReasonTxLog.value() self.hd_simulator.cmd_send_post_treatment_log_response(False, reason, parameters)