scippnexus.create_class#

scippnexus.create_class(group, name, nx_class)#

Create empty HDF5 group with given name and set the NX_class attribute.

Parameters:
  • name (str) – Group name.

  • nx_class (Union[str, type]) – Nexus class, can be a valid string for the NX_class attribute, or a subclass of NXobject, such as NXdata or NXlog.

Return type:

H5Group