Skip to content

Commit

Permalink
fixing codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasM2001 authored and matthias-schuessler committed Jun 24, 2024
1 parent 6a627d1 commit f5c12d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion basil/HL/bronkhorst_elflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions examples/lab_devices/bronkhorsteflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
''' This script shows how to use EFLOW
'''

import time
from basil.dut import Dut

dut = Dut('bronkhorstELFLOW_pyserial.yaml')
dut.init()

# 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)
Expand All @@ -28,4 +27,4 @@

# Measuring of valve opening in %
valve = dut["hot_n2"].get_valve_output()
print("Valve opened in %", valve)
print("Valve opened in %", valve)

0 comments on commit f5c12d7

Please sign in to comment.