|
QDpy
|
Public Member Functions | |
| Mapping[str, Any] | __get_saved_state__ (self) |
| None | save (self, str output_path, str output_type="pickle") |
Write a result dictionary supplied by the object. Subclasses choose what the snapshot holds through the saved-state hook. Result files can contain Python objects and should only be loaded from trusted sources.
| Mapping[str, Any] qdpy.base.Saveable.__get_saved_state__ | ( | self | ) |
| None qdpy.base.Saveable.save | ( | self, | |
| str | output_path, | ||
| str | output_type = "pickle" ) |
Serialize a result dictionary and replace the destination atomically. Write the new pickle to a temporary file in the destination directory. Preserve the previous result if serialisation or replacement fails. :param output_path: Destination file in an existing directory. :param output_type: Output format. The supported value is ``pickle``. :raises ValueError: If another output type is requested.