eelbrain.load.unpickle¶
-
eelbrain.load.
unpickle
(path:pathlib.Path=None)¶ Load pickled Python objects from a file.
Almost like
pickle.load(open(path))
, but also loads object saved with older versions of Eelbrain, and allows using a system file dialog to select a file.Parameters: - path : Path
Path to a pickled file. If omitted, a system file dialog is shown. If the user cancels the file dialog, a RuntimeError is raised.
Notes
If you see
ValueError: unsupported pickle protocol: 4
, the pickle file was saved with Python 3; in order to make pickles backwards-compatible, usepickle()
withprotocol=2
.