diff --git a/labscript/labscript.py b/labscript/labscript.py index 1b1ee8e..39fd574 100644 --- a/labscript/labscript.py +++ b/labscript/labscript.py @@ -102,7 +102,7 @@ def bitfield(arrays,dtype): """converts a list of arrays of ones and zeros into a single array of unsigned ints of the given datatype.""" n = {uint8:8,uint16:16,uint32:32} - if arrays[0] == 0: + if np.array_equal(arrays[0], 0): y = zeros(max([len(arr) if iterable(arr) else 1 for arr in arrays]),dtype=dtype) else: y = array(arrays[0],dtype=dtype)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: