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.
1 parent 62b9098 commit a667f7eCopy full SHA for a667f7e
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 not isinstance(arrays[0], np.ndarray) and 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