rsatoolbox.io.hdf5 module

saving to and reading from HDF5 files

rsatoolbox.io.hdf5.read_dict_hdf5(fhandle: str | IO) Dict[source]

writes a nested dictionary containing strings & arrays as data into a hdf5 file

Parameters:

file – a filename or opened readable file

Returns:

the loaded dict

Return type:

dictionary(dict)

rsatoolbox.io.hdf5.write_dict_hdf5(fhandle: str | IO, dictionary: Dict) None[source]

writes a nested dictionary containing strings & arrays as data into a hdf5 file

Parameters:
  • file – a filename or opened writable file

  • dictionary (dict) – the dict to be saved