scippnexus.create_class#

scippnexus.create_class(group, name, nx_class)[source]#

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

Parameters:
  • name (str) – Group name.

  • nx_class (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