I/O Functions#

This page documents I/O functions for loading and saving data.

Loading Data#

cdiutils.io.load_cxi(path, *key)[source]#

Load a CXI file and return its content as a dictionary.

Parameters:

path (str) – the path to the CXI file.

Returns:

the content of the CXI file. If a single

key_path is provided, returns the corresponding dataset. If multiple key_paths are provided, returns a dictionary with the datasets.

Return type:

np.ndarray or dict

Saving Data#

File Discovery#

Format Conversion#