qimpy.io.CheckpointContext

class CheckpointContext(stage, i_iter=0)

Bases: NamedTuple

Identify from where/when a checkpoint is being written.

Parameters:
  • stage (str) –

  • i_iter (int) –

__init__()

Methods

__init__

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

i_iter

Iteration number of that stage

stage

Stage of calculation being checkpointed e.g. "geometry", "end".

i_iter: int

Iteration number of that stage

stage: str

Stage of calculation being checkpointed e.g. “geometry”, “end”