eelbrain.load.convert_pickle_protocol(root=None, to_protocol=4, pattern='**/*.pickle')

Re-save all pickle files with a specific protocol

  • root (Union[Path, str, None]) – Root directory to look for pickle files.

  • to_protocol (int) – Protocol to re-save with.

  • pattern (str) – Filename pattern used to find pickle files.


Python 3.8 introduced a new pickle protocol 5, which Python 3.7 can’s read. This function converts such files in order to make them readable with older version of Python.