eelbrain.save.pickle

eelbrain.save.pickle(obj, dest:pathlib.Path=None, protocol:int=4)

Pickle a Python object.

Parameters:
obj : object

Python object to save.

dest : Path

Path to destination where to save the file. If no destination is provided, a file dialog is shown. If a destination without extension is provided, .pickle is appended.

protocol : int

Pickle protocol (default is HIGHEST_PROTOCOL). For pickles that can be opened in Python 2, use protocol<=2.