rsatoolbox.io.pkl module

saving to and reading from pickle files

rsatoolbox.io.pkl.read_dict_pkl(fhandle: str | IO) Dict[source]

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

Parameters:

file – a filename or opened readable file

Returns:

the loaded dict

Return type:

dictionary(dict)

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

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

Parameters:
  • file – a filename or opened writable file

  • dictionary (dict) – the dict to be saved