ewoksdata.data.nexus.get_nxentry#

ewoksdata.data.nexus.get_nxentry(h5item)[source]#

Return the top-level NXentry group containing the given HDF5 item.

Parameters:

h5item (Union[Dataset, Group]) – An HDF5 dataset or group.

Return type:

Group

Returns:

The NXentry group containing h5item.

Raises:

ValueError – If the item does not belong to an NXentry hierarchy.