Skip to content

Commit a667f7e

Browse files
committed
Bugfix for ValueError introduced in #68
1 parent 62b9098 commit a667f7e

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 not isinstance(arrays[0], np.ndarray) and 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)