Skip to content

Commit

Permalink
fixing codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasM2001 committed May 6, 2024
1 parent 150683d commit d0a617d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions basil/HL/mercury.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_channel(self, address=None):

def set_position(self, value, precision=500, address=None, wait=True):
self._write_command("MA%d" % value, address)
if wait == True:
if wait is True:
pos = self._wait_FE(address)
if abs(pos - value) <= precision:
print("At position", pos, "Traget at", value)
Expand All @@ -85,7 +85,7 @@ def set_position(self, value, precision=500, address=None, wait=True):
def move_relative(self, value, precision=500, address=None, wait=True):
target = self.get_position(address=1) + value
self._write_command("MR%d" % value, address)
if wait == True:
if wait is True:
pos = self._wait_FE(address)
if abs(pos - target) <= precision:
print("At position", pos, "Traget at", target)
Expand Down
2 changes: 1 addition & 1 deletion examples/lab_devices/MotorStage.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
dut["MotorStage"].move_relative(10000, address=1, wait=False)

# finding edge example:
#dut["MotorStage"].find_edge(1,address=1) # 0 or 1 indicates direction of movement
# dut["MotorStage"].find_edge(1,address=1) # 0 or 1 indicates direction of movement

# abort any movement abruptly:
# dut["MotorStage"].abort(address=1)

0 comments on commit d0a617d

Please sign in to comment.