sidpy.hdf.hdf_utils.get_attr¶
- sidpy.hdf.hdf_utils.get_attr(h5_object, attr_name)[source]¶
Returns the attribute from the h5py object
- Parameters:
h5_object (
h5py.Dataset
,h5py.Group
orh5py.File
) – object whose attribute is desiredattr_name (str) – Name of the attribute of interest
- Returns:
att_val – value of attribute, in certain cases (byte strings or list of byte strings) reformatted to readily usable forms
- Return type: