polaris.run.results.TaskResult
- class polaris.run.results.TaskResult(path: str, steps_to_run: List[str] | None = None, log: str | None = None, execution_passed: bool | None = None, baseline_passed: bool | None = None, elapsed_seconds: float | None = None, baseline_diffs: Dict = <factory>)[source]
The outcome of running a task as part of a suite
- Variables:
path (str) – The path of the task within the component, which is also its name in the suite
steps_to_run (list of str, optional) – The steps the task was set to run, or
Noneif the task has not been run yetlog (str, optional) – The path of the task’s log file, relative to the suite’s base work directory, or
Noneif the task does not have a single log fileexecution_passed (bool, optional) – Whether the steps of the task ran without error, or
Noneif the task has not been run yetbaseline_passed (bool, optional) – Whether the baseline comparisons passed, or
Noneif none were madeelapsed_seconds (float, optional) – The wall-clock time the task took to run, or
Noneif the task has not been run yetbaseline_diffs (dict) – The maximum l1, l2 and l_infinity norms of the difference from the baseline, keyed by variable name, as merged by
polaris.validate.merge_diff_summary()
- __init__(path: str, steps_to_run: List[str] | None = None, log: str | None = None, execution_passed: bool | None = None, baseline_passed: bool | None = None, elapsed_seconds: float | None = None, baseline_diffs: Dict = <factory>) None
Methods
__init__(path, steps_to_run, log, ...)to_dict()The task's entry in the results file
Attributes
baseline_passedelapsed_secondsexecution_passedlogpendingWhether the task has not been run yet
statuspending,passorfailsteps_to_runsuccessWhether the task ran without error and no baseline comparison failed
pathbaseline_diffs