labscript.labscript.bitfield

bitfield(arrays, dtype)[source]

Converts a list of arrays of ones and zeros into a single array of unsigned ints of the given datatype.

Parameters
  • arrays (list) – List of numpy arrays consisting of ones and zeros.

  • dtype (data-type) – Type to convert to.

Returns

Numpy array with data type dtype.

Return type

numpy.ndarray