Runs
- class ixmp4.core.run.Run(**kwargs: Unpack[RunKwargs])
Bases:
BaseModelFacade
- NoDefaultVersion
alias of
NoDefaultRunVersion
- NotFound
alias of
RunNotFound
- NotUnique
alias of
RunNotUnique
- checkpoints: RunCheckpoints
- delete() None
Delete this run. Tries to acquire a lock in the background.
Raises
ixmp4.core.exceptions.RunIsLocked
:If the run is already locked by this or another object.
- property meta: RunMetaFacade
Meta indicator data (dict-like).
- transact(message: str, timeout: float | None = None) Generator[None, None, None]
Context manager to lock the run before yielding control back to the caller. The run is unlocked and a checkpoint with the provided message is created after the context manager exits. If an exception occurs, the run is reverted to the last checkpoint or if no checkpoint exists, to the transaction the run was locked at.
If the run is already locked, the context manager will throw Run.IsLocked or if timeout is provided retry until the timeout has passed (and then throw the original Run.IsLocked exception).
Parameters
- messsagestr
The message for the checkpoint created after conclusion of the context manager.
- timeoutint, optional
Timeout in seconds.
Raises
ixmp4.core.exceptions.RunIsLocked
If the run is already locked and no timeout is provided or the provided timeout is exceeded.
- class ixmp4.core.run.RunKwargs
Bases:
TypedDict
- class ixmp4.core.run.RunMetaFacade(run: Run, **kwargs: Backend)
Bases:
BaseFacade
,UserDict
[str
,bool
|float
|int
|str
|None
]