sidpy.io.nexus.nexus_to_sidpy

sidpy.io.nexus.nexus_to_sidpy(h5_path, entry_path=None, nxdata_path=None, signal_name=None)[source]

Read a NeXus HDF5 NXdata signal into a sidpy.Dataset.

Parameters:
  • h5_path (str or h5py.File) – Source HDF5 file path or open file handle.

  • entry_path (str, optional) – Explicit path to the NXentry group.

  • nxdata_path (str, optional) – Explicit path to the NXdata group.

  • signal_name (str, optional) – Explicit name of the signal dataset inside NXdata.

Returns:

Restored dataset.

Return type:

sidpy.Dataset