ewoksdata.data.nexus.ensure_nxclass#

ewoksdata.data.nexus.ensure_nxclass(group)[source]#

Ensure the HDF5 group has an appropriate NX_class attribute.

The attribute is assigned based on the group’s depth in the hierarchy:
  • Root group (/): NXroot

  • First-level group: NXentry

  • Deeper groups: NXcollection

Parameters:

group (h5py.Group) – The HDF5 group to update.

Return type:

None