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
Return the workflow's steps in pipeline order.
Run the dynamic workflow on a well.
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: theWorkflowStep, the method that runs it on a well and returns itsStepResult, and the method that tells whether the well and settings allow it.- Return type:
- run_selected_steps(well, steps)[source]¶
Execute only the specified workflow steps, in pipeline order.
Like
run(), it works on a copy ofconfig.- Parameters:
well (Well)
steps (list[WorkflowStep])
- Return type:
- 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.configis the configuration used for this run, with any"auto"matrix/lithology replaced by the resolved values.- Return type:
Notes
The settings are used as given: LAS header parameters are applied by
run_dynamic_workflow()andpetrophys.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, andconfigitself is left unchanged.