Index: leahi_dialin/dd/proxies/td_proxy.py =================================================================== diff -u -r1f2bf6d939eb4033dbedb7d7005494cc12fccbc6 -re5a48b1ffd05454177a0966e96f8bb1755884615 --- leahi_dialin/dd/proxies/td_proxy.py (.../td_proxy.py) (revision 1f2bf6d939eb4033dbedb7d7005494cc12fccbc6) +++ leahi_dialin/dd/proxies/td_proxy.py (.../td_proxy.py) (revision e5a48b1ffd05454177a0966e96f8bb1755884615) @@ -85,7 +85,8 @@ def cmd_td_send_dd_gen_dialysate_request(self, start: bool = 0, dial_rate: float = 0, uf_rate: float = 0, - dial_temp: float = 0, bypass: int = 0, acid_conv_factor: float = 0.0, bicarb_conv_factor: float = 0.0, sodium: int = 0, bicarb_volume: int = 0): + dial_temp: float = 0, bypass: int = 0, acid_conv_factor: float = 0.0, + bicarb_conv_factor: float = 0.0, sodium: int = 0, bicarb_volume: int = 0, sub_rate: float = 0): """ Constructs and sends a TD gen dialysate request to the DD. @@ -100,7 +101,8 @@ bic = float_to_bytearray(bicarb_conv_factor) sod = integer_to_bytearray(sodium) bvl = integer_to_bytearray(bicarb_volume) - payload = stt + dial + uf + temp + byp + acd + bic + sod + bvl + sub = float_to_bytearray(sub_rate) + payload = stt + dial + uf + temp + byp + acd + bic + sod + bvl + sub cmd_generic_override(payload = payload, reset = None, @@ -115,12 +117,15 @@ def cmd_td_send_dd_start_pre_gen_request(self, start: bool = 0, dialysate_rate: float = 0.0, dialysate_temp: float = 0.0, acid_conv_factor: float = 0.0, bicarb_conv_factor: float = 0.0, sodium: int = 0, bicarb_volume: int = 0): """ - Constructs and sends a TD start pre gen dialysate request to the DD. - :param start: start and stop boolean - :param dialysate_rate: dialysate rate in ml/min - :param dialysate_temp: dialysate temp in c - :param acid_type: acid type - :param bicarb_type: bicarb type + Constructs and sends a TD start pre gen dialysate request to the DD. + + :param start: (Boolean) start and stop boolean + :param dialysate_rate: (Float) dialysate rate in ml/min + :param dialysate_temp: (Float) dialysate temp in c + :param acid_conv_factor: (Float) acid conversion factor + :param bicarb_conv_factor: (Float) bicarb conversion factor + :param sodium: (Integer) bicarb conversion factor + :param bicarb_volume: (Integer) bicarb volume :return: """ stt = integer_to_bytearray(start)