RunOutcome#

MemberKindWhat it is
openmethodOpen the directory of the outcome by the verb open: a run or a session.
readmethodReturn the outcome of the run or session in *run_dir*.
to_dictmethodReturn the outcome as a mapping that json.dumps writes as it is.
deliveriesattributeSignature only
identical_toattributeSignature only
kindattributeSignature only
mesh_summaryattributeSignature only
nameattributeSignature only
project_rootattributeSignature only
request_idattributeSignature only
run_dirattributeSignature only
sim_idattributeSignature only
statusattributeSignature only
class RunOutcome(
name,
run_dir,
sim_id,
request_id,
status,
identical_to,
project_root,
mesh_summary=None,
deliveries=(),
kind='run',
)[source]#

What a finished run says, read from its directory.

identical_to names the completed run a run gave back instead of computing it again, and is None for a run that computed. mesh_summary is what the mesh step of a run that computed one says of its mesh; no file of the run directory holds it, so read() leaves it None. deliveries are the delivery lines the call wrote for the run, empty for a run that delivered nothing; read() leaves them empty. kind says whether the directory is a run, a session or a case of a plan.

classmethod read(
run_dir,
*,
project_root,
identical_to=None,
kind='run',
)[source]#

Return the outcome of the run or session in run_dir.

Raises FileNotFoundError when the directory carries no outcome.

open()[source]#

Open the directory of the outcome by the verb open: a run or a session.

to_dict()[source]#

Return the outcome as a mapping that json.dumps writes as it is.

deliveries: tuple[PublishedLine, ...]#
identical_to: str | None#
kind: Literal['run', 'session', 'case']#
mesh_summary: Mapping[str, Any] | None#
name: str#
project_root: Path#
request_id: str | None#
run_dir: Path#
sim_id: str | None#
status: str#