We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62b9098 + 4e77810 commit 2e2785cCopy full SHA for 2e2785c
labscript/labscript.py
@@ -102,7 +102,7 @@ def bitfield(arrays,dtype):
102
"""converts a list of arrays of ones and zeros into a single
103
array of unsigned ints of the given datatype."""
104
n = {uint8:8,uint16:16,uint32:32}
105
- if arrays[0] == 0:
+ if np.array_equal(arrays[0], 0):
106
y = zeros(max([len(arr) if iterable(arr) else 1 for arr in arrays]),dtype=dtype)
107
else:
108
y = array(arrays[0],dtype=dtype)
0 commit comments