nxtomo.nxobject.nxsource#

Module for handling an NXsource.

Functions

check_dimensionality(expected_dimension[, ...])

Decorator to check the dimensionality of a pint.Quantity parameter.

docstring(origin)

Decorator to initialize the docstring from another source.

get_data(file_path, data_path)

Proxy to h5py_read_dataset, handling the case where data_path is not present in the file.

get_nexus_paths(version)

get_quantity(file_path, data_path, default_unit)

Return the value and unit of an HDF5 dataset.

is_not(a, b, /)

Same as a is not b.

Classes

DefaultESRFSource([node_name, parent])

ESRF source.

NXobject(node_name[, parent])

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

Information regarding the X-ray storage ring or facility.

ProbeType(value[, names, module, qualname, ...])

Probe types like "x-ray" or "neutron".

SourceType(value[, names, module, qualname, ...])

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.