diff --git a/basil/HL/bronkhorst_elflow.py b/basil/HL/bronkhorst_elflow.py index fe7c6625..719efc2d 100644 --- a/basil/HL/bronkhorst_elflow.py +++ b/basil/HL/bronkhorst_elflow.py @@ -55,7 +55,7 @@ def read(self): def get_valve_output(self): self._intf.write(self.CMDS['get_valve']) ret = int(self.read()[11:], 16) - return ret*61.7/10345949 # converts int in percentage + return ret*61.7 / 10345949 # converts int in percentage def set_setpoint(self, value): """value range from 0 - 32000 diff --git a/examples/lab_devices/bronkhorsteflow.py b/examples/lab_devices/bronkhorsteflow.py index 6110e954..e48a326e 100644 --- a/examples/lab_devices/bronkhorsteflow.py +++ b/examples/lab_devices/bronkhorsteflow.py @@ -8,7 +8,6 @@ ''' This script shows how to use EFLOW ''' -import time from basil.dut import Dut dut = Dut('bronkhorstELFLOW_pyserial.yaml') @@ -16,9 +15,9 @@ # setting set point dut["hot_n2"].set_mode(0) -dut["hot_n2"].set_setpoint(10000) +dut["hot_n2"].set_setpoint(10000) dut["hot_n2"].set_mode(0) -print("setpoint",dut["hot_n2"].get_setpoint()) +print("setpoint", dut["hot_n2"].get_setpoint()) # controlling valve dut["hot_n2"].set_mode(20) @@ -28,4 +27,4 @@ # Measuring of valve opening in % valve = dut["hot_n2"].get_valve_output() -print("Valve opened in %", valve) \ No newline at end of file +print("Valve opened in %", valve)