pyNSID.io.hdf_utils.check_if_main

pyNSID.io.hdf_utils.check_if_main(h5_main, verbose=False)[source]

Checks the input dataset to see if it has all the necessary features to be considered a Main dataset. This means it is dataset has dimensions of correct size and has the following attributes: * quantity * units * main_data_name * data_type * modality * source In addition, the shapes of the ancillary matrices should match with that of h5_main :param h5_main: Dataset of interest :type h5_main: HDF5 Dataset :param verbose: Whether or not to print statements :type verbose: Boolean (Optional. Default = False)

Returns

success – True if all tests pass

Return type

Boolean