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
count
Return number of occurrences of value.
index
Return first index of value.
Attributes
Iteration number of that 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”