nxtomo.nxobject.nxsource#

module for handling a nxsource

Functions

docstring(origin)

Decorator to initialize the docstring from another source.

get_data(file_path, data_path)

proxy to h5py_read_dataset, handling use case 'data_path' not present in the file.

get_data_and_unit(file_path, data_path, ...)

return for an HDF5 dataset his value and his unit.

get_nexus_paths(version)

is_not(a, b, /)

Same as a is not b.

Classes

DefaultESRFSource([node_name, parent])

ESRF source

ElementWithUnit(default_unit)

MetricSystem(value)

Util enum to retrieve metric.

NXobject(node_name[, parent])

NXsource([node_name, parent, source_name, ...])

Information regarding the x-ray storage ring/facility

ProbeType(value)

probe type like 'x-ray' or 'neutron'

SourceType(value)

source types like 'Synchrotron X-ray Source' or 'Free-Electron Laser'

partial

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.