pyUSID.io.hdf_utils.simple.validate_main_dset¶
- pyUSID.io.hdf_utils.simple.validate_main_dset(h5_main, must_be_h5)[source]¶
Checks to make sure that the provided object is a USID main dataset Errors in parameters will result in Exceptions
- Parameters:
h5_main (h5py.Dataset or numpy.ndarray or Dask.array.core.array) – object that represents the USID main data
must_be_h5 (bool) – Set to True if the expecting an h5py.Dataset object. Set to False if expecting a numpy.ndarray or Dask.array.core.array