ptyrad.load

ptyrad.load#

Loading functions for different file types including .mat, .hdf5, .tif, .raw, .yaml, etc.

Functions

collect_ND_datasets(data_dict[, ndims, ...])

Collect ND numpy arrays from a (possibly nested) dictionary that match desired dimensionalities.

load_ND_with_key(file_path[, key, ndims, ...])

Load exactly one ND dataset from (possibly nested) files like .mat and .hdf5.

load_array_from_file(path[, key, ndims, ...])

Load array from a file.

load_hdf5(file_path[, key, delimiter])

Load dataset(s) from an HDF5 file, recursively if groups are encountered.

load_json_params(file_path)

load_mat(file_path[, key, delimiter, ...])

Load dataset(s) from a MATLAB .mat file, handling both default and v7.3 (HDF5) formats.

load_npy(file_path)

load_params(file_path[, validate])

load_pt(file_path[, weights_only])

load_ptyrad(file_path)

Load PtyRAD reconstruction files based on their file extension.

load_py_params(file_path)

load_raw(file_path, shape[, dtype, offset, gap])

load_tif(file_path)

load_toml_params(file_path)

Load parameters from a TOML file.

load_yml_params(file_path)