qimpy.io.CheckpointContext
- class CheckpointContext(stage, i_iter=0)
Bases:
NamedTupleIdentify from where/when a checkpoint is being written.
- Parameters
stage (str) –
i_iter (int) –
- __init__()
Methods
countReturn number of occurrences of value.
indexReturn first index of value.
Attributes
Iteration number of that stage
Stage of calculation being checkpointed e.g.
- i_iter: int
Iteration number of that stage
- stage: str
Stage of calculation being checkpointed e.g. “geometry”, “end”