sidpy.hdf.hdf_utils.is_editable_h5

sidpy.hdf.hdf_utils.is_editable_h5(h5_obj)[source]

Returns True if the file containing the provided h5 object is in w or r+ modes

Parameters:

h5_obj (h5py.File, h5py.Group, or h5py.Dataset object) – h5py object

Returns:

mode – True if the file containing the provided h5 object is in w or r+ modes

Return type:

bool