pyyeti.ytools.save¶
- pyyeti.ytools.save(name, obj)[source]¶
Save an object to a file via pickling.
- Parameters:
name (string or None) – Name of file or directory or None. If file name, should end in either ‘.p’ for an uncompressed pickle file, or in ‘.pgz’ or ‘.pbz2’ for a gzip or bz2 compressed pickle file. Note: only ‘.pgz’ and ‘pbz2’ are checked for; anything else is uncompressed. If name is the name of a directory or None, a GUI is opened for file selection.
obj (any) – Any object to be pickled.
Notes
See
pickle