h_resume

h_resume(filename: str | None = None)[source]

Restore a saved pipeline state.

Restores a named pipeline state from disk, allowing a suspended pipeline reduction session to be resumed.

Parameters:

filename -- Saved pipeline state name. If set to 'last' or left as None, the most recently saved state ending with '.context' will be restored.

Returns:

The pipeline context object.

Examples

Resume the last saved session:

>>> h_resume()

Resume from a saved session using the context snapshot after the processing stage-35:

>>> h_resume(filename='pipeline-20230227T202157/saved_state/context-stage35.pickle')