savePickleFile#

pyCGM2.Utils.files.savePickleFile(instance: object, path: str, filename: str)#

Serialize an object and save it as a pickle file.

Parameters:
  • instance (object) – The object to be serialized and saved.

  • path (str) – The directory path to save the file.

  • filename (str) – The filename for the saved file.