tomoscan.framereducer.utils#

Functions

format_data_path(data_path)

Format the data path by removing the "{index}" or "{index_zfill4}" pattern if it exists and return the formatted data path and a boolean indicating if the "{index_zfill4}" pattern was found.

get_unit(attrs)

Get the unit from the attributes of a dataset or group.

read_reduced_frames(url, read_as_url, ...)

Read one reduced frame and append frame data to 'res_data' and frame metadata to 'res_metadata'.

read_reduced_frames_metadata(url, res_metadata)

Read reduced frame metadata and append it to 'res_metadata'.