load_mat#

deepinv.utils.load_mat(fname, mat73=False, **kwargs)[source]#

Load MATLAB array from file.

This function depends on the scipy package. You can install it with pip install scipy.

Parameters:
  • fname (str, pathlib.Path) – filename to load

  • mat73 (bool) – if file is MATLAB 7.3 or above, load with mat73. Requires mat73, install with pip install mat73.

Returns:

dict with str keys and numpy array values.

Return type:

dict[str, ndarray]