pickle_object¶
- sofia_redux.toolkit.utilities.multiprocessing.pickle_object(obj, filename)[source]¶
Pickle a object and save to the given filename.
- Parameters:
- objobject
The object to pickle.
- filenamestr or None
If
filenamepoints to a writeable on-disk location,objwill be pickled and saved to that location. IfNone, nothing will happen.
- Returns:
- outputstr or object
Either the
filenameif the object was pickled, orobjif it wasn’t.