scippneutron.io.nexus.load_nexus.load_nexus#

scippneutron.io.nexus.load_nexus.load_nexus(data_file, root='/', quiet=True)#

Load a NeXus file and return required information.

Parameters:
  • data_file (Union[str, Path, File]) – path of NeXus file containing data to load

  • root (str, default: '/') – path of group in file, only load data from the subtree of this group

  • quiet (default: True) – if False prints some details of what is being loaded

Return type:

Union[Dataset, DataArray, None]

Usage example:

data = sc.neutron.load_nexus(‘PG3_4844_event.nxs’)