otter.save_plasma_state

otter.save_plasma_state(path: str | Path, workflow: Mapping[str, Any], *, options: StateExportOptions | None = None) Path[source]

Save one completed workflow as a portable compressed NPZ state.

The file is written beside the destination and atomically replaced only after NumPy has completed the archive. A failed or interrupted export therefore cannot expose a partially written production state.