Skip to content

Commit 2e2785c

Browse files
Merge pull request #70 from rpanderson/is-syntax-warning-bugfix
Bugfix for ValueError introduced in #68
2 parents 62b9098 + 4e77810 commit 2e2785c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labscript/labscript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def bitfield(arrays,dtype):
102102
"""converts a list of arrays of ones and zeros into a single
103103
array of unsigned ints of the given datatype."""
104104
n = {uint8:8,uint16:16,uint32:32}
105-
if arrays[0] == 0:
105+
if np.array_equal(arrays[0], 0):
106106
y = zeros(max([len(arr) if iterable(arr) else 1 for arr in arrays]),dtype=dtype)
107107
else:
108108
y = array(arrays[0],dtype=dtype)

0 commit comments

Comments
 (0)