DynamicWorkflow

petrophys.workflow.DynamicWorkflow

class DynamicWorkflow(config=None)[source]

Dynamic petrophysics workflow that auto-detects available inputs.

This workflow inspects the well’s available curves and the provided configuration to determine which processing steps can be executed. It runs modules in the correct pipeline order and passes results between dependent steps.

Examples

>>> config = DynamicWorkflowConfig(
...     bht="220 degF", td="8500 ft", rw=0.05,
...     lithology_domain='clastic', salinity_ppm=25000
... )
>>> workflow = DynamicWorkflow(config)
>>> result = workflow.run(well)
>>> print(result.steps_executed)

Methods

get_pipeline

Return the workflow's steps in pipeline order.

run

Run the dynamic workflow on a well.

run_selected_steps

Execute only the specified workflow steps, in pipeline order.

Parameters:

config (DynamicWorkflowConfig | None)

get_pipeline()[source]

Return the workflow’s steps in pipeline order.

Returns:

One (step, run, can_run) per step: the WorkflowStep, the method that runs it on a well and returns its StepResult, and the method that tells whether the well and settings allow it.

Return type:

list of tuple

run_selected_steps(well, steps)[source]

Execute only the specified workflow steps, in pipeline order.

Like run(), it works on a copy of config.

Parameters:
Return type:

DynamicWorkflowResult

run(well)[source]

Run the dynamic workflow on a well.

Automatically detects available curves and executes applicable processing steps in pipeline order.

Parameters:

well (Well) – Well object with raw log data

Returns:

result.config is the configuration used for this run, with any "auto" matrix/lithology replaced by the resolved values.

Return type:

DynamicWorkflowResult

Notes

The settings are used as given: LAS header parameters are applied by run_dynamic_workflow() and petrophys.interpret(), which build the config from them, not here.

Each run works on its own copy of config, so a workflow can be reused across wells: values resolved for one well (e.g. an "auto" matrix) never carry over to the next, and config itself is left unchanged.