nxtomo.utils.utils#

General utility helpers.

Functions

cast_and_check_array_1D(array, array_name)

Cast the provided array to 1D and handle pint quantities.

create_detector_dataset_from_tiff(...[, ...])

Create a series of external datasets to TIFF files (one per file) inside external_dataset_group.

get_data(file_path, data_path)

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

get_quantity(file_path, data_path, default_unit)

Return the value and unit of an HDF5 dataset.

h5py_read_dataset(dset[, index, decode_ascii])

Read data from dataset object.

hdf5_open(filename)

Open a file as an h5py-like object.

to_target_rel_path(file_path, target_path)

Cast file_path to a relative path according to target_path.

Classes

TiffFile(file, /, *[, mode, name, offset, ...])

Read image and metadata from TIFF file.