nxtomo.nxobject.nxsample#

module for handling a nxsample

Functions

cast_and_check_array_1D(array, array_name)

cast provided array to 1D

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

ElementWithUnit(default_unit)

MetricSystem(value)

Util enum to retrieve metric.

NXobject(node_name[, parent])

NXsample([node_name, parent])

NXtransformations([node_name, parent])

partial

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