StepResult

petrophys.workflow.StepResult

class StepResult(
step,
success,
message='',
method='',
input_curves=<factory>,
output_curves=<factory>,
parameters=<factory>,
decisions=<factory>,
data=None,
also_written=<factory>,
curves_removed=<factory>,
parameter_notes=<factory>,
written_by=<factory>,
)[source]

Result of a single workflow step with full trace metadata.

Parameters:
step

Step name (e.g., “vclay”, “porosity”).

Type:

str

success

Whether the step completed without error.

Type:

bool

message

Why the step failed; empty when it succeeded (decisions and parameters describe what it did).

Type:

str

method

Algorithm/equation used (e.g., “larionov_tertiary”, “simandoux”).

Type:

str

input_curves

Log curves consumed by this step.

Type:

list

output_curves

Curves added/modified on the well.

Type:

list

parameters

All numeric parameters, thresholds, and constants used.

Type:

dict

decisions

Human-readable trace of decisions/logic branches taken.

Type:

list

data

Extra step output for custom steps; the built-in steps leave it None.

Type:

dict, optional

parameter_notes

What a parameter is, where its name alone misleads ({name: note}): the rw step’s rwa_median_over_rw is a check of the Rw in use on any route, not an Rw from Rwa.

Type:

dict

Attributes

also_written

Under a benchmark profile, curves the step also wrote beyond the package's own output_curves list (which those packages' context records keep); under "current" they are in output_curves.

curves_removed

Curves the step removed from the well.

written_by

the net-pay step's hydrocarbon analysis writes VP_VS_RATIO and CROSSOVER_FLAG, which are its, not the cutoffs'.

Methods

to_dict

Return a JSON-safe representation of this workflow step trace.

also_written: List[str]

Under a benchmark profile, curves the step also wrote beyond the package’s own output_curves list (which those packages’ context records keep); under "current" they are in output_curves.

curves_removed: List[str]

Curves the step removed from the well.

written_by: Dict[str, str]

the net-pay step’s hydrocarbon analysis writes VP_VS_RATIO and CROSSOVER_FLAG, which are its, not the cutoffs’.

Type:

The output curves an analysis the step ran wrote, and which ({curve: analysis})

to_dict()[source]

Return a JSON-safe representation of this workflow step trace.

Return type:

Dict[str, Any]