pingwyn.save

pingwyn.save(obj, path, file_type='gwy')

Save a Pingwyn object to disk.

Parameters:
  • obj (pingwyn.Curve or pingwyn.Grid or pingwyn.Image or pingwyn.Profile or pingwyn.Datacontainer) – The object to write to disk.

  • path (str) – The path (directory + filename, extension is optional) on disk to write the object to.

  • file_type (str) – The type of file to write. Can be “csv” for plain text, “pingwyn” or “pg_pkl” for a pingwyn native data type or “gwy” for gwyddion files. Note: only the pingwyn-native data type has lossless storage. The other data types may lose information. Default: “gwy”.