ewoksdata.data.nexus.ensure_nxclass#
- ewoksdata.data.nexus.ensure_nxclass(group)[source]#
Ensure the HDF5 group has an appropriate
NX_classattribute.- The attribute is assigned based on the group’s depth in the hierarchy:
Root group (
/):NXrootFirst-level group:
NXentryDeeper groups:
NXcollection
- Parameters:
group (h5py.Group) – The HDF5 group to update.
- Return type:
None