WorkflowBatchResult

petrophys.workflow.custom.WorkflowBatchResult

Also available as petrophys.workflow.WorkflowBatchResult

class WorkflowBatchResult(workflow)[source]

The outcome of Workflow.run_many().

Parameters:

workflow (Workflow)

workflow

The workflow as run.

Type:

Workflow

results

WorkflowRunResult by well name, for wells that ran.

Type:

dict

errors

Error message by well name, for wells that could not be read or whose run raised (with strict=True, a missing input or a failed step).

Type:

dict

Attributes

wells

Every well name, in input order, including wells with errors.

Methods

raise_for_errors

Raise RuntimeError listing every failed well; otherwise return this batch.

summary_table

One row per well (or per well and formation) with status and key results.

property wells: List[str]

Every well name, in input order, including wells with errors.

raise_for_errors()[source]

Raise RuntimeError listing every failed well; otherwise return this batch.

Return type:

WorkflowBatchResult

summary_table(
top=None,
bottom=None,
*,
by_formation=False,
rank=None,
)[source]

One row per well (or per well and formation) with status and key results.

Thicknesses are in each well’s depth unit (column Depth Unit). Avg PHIE, Avg Sw, Avg VCL and Avg Perm (mD) are averaged over net-pay samples (geometric mean for permeability), as in WorkflowRunResult.formation_summary(); they read the PHIE, SW, VCL, PERM and NET_* curves.

Parameters:
  • top (float, optional) – Depth window; defaults to each well’s logged interval. Ignored when by_formation is True.

  • bottom (float, optional) – Depth window; defaults to each well’s logged interval. Ignored when by_formation is True.

  • by_formation (bool, default False) – One row per formation, from the formations attached to each well.

  • rank (str, optional) – Formation level when the tops mix levels, e.g. "formation".

Returns:

Columns Well (and Formation), Status, Steps Run, Skipped Steps, Depth Unit, Top, Bottom, Gross, Net Pay, Pay/Gross, Avg PHIE, Avg Sw, Avg VCL, Avg Perm (mD) and Error. Wells that did not run have status "error".

Return type:

DataFrame