Skip to content

Commit 52cbbe9

Browse files
committed
Fix issues in doXX channel changeover
1 parent f2601a9 commit 52cbbe9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

labscript_devices/PrawnDO/blacs_workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _dict_to_int(self, d):
173173
"""
174174
val = 0
175175
for conn, value in d.items():
176-
val |= value << int(conn)
176+
val |= value << int(conn.split('do')[-1])
177177

178178
return val
179179

labscript_devices/PrawnDO/labscript_devices.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ def add_device(self, device):
8080
8181
Args:
8282
device (): Device to attach. Must be a digital output.
83-
Allowed connections are a string that ends with a 0-F hex
84-
channel number.
83+
Allowed connections are a string of the form `doXX`
8584
"""
8685

8786
conn = device.connection

0 commit comments

Comments
 (0)