nxxrdct.utils#

General utility helpers.

Functions

get_attribute(file_path, data_path, name)

Read attribute name of the HDF5 node at data_path, decoding bytes to str.

get_data(file_path, data_path)

Read data from the HDF5 dataset or return None when missing.

get_link(file_path, data_path)

Return the link at data_path without following it (for example an h5py.ExternalLink), or None when missing.

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.