WorkflowValidationError

petrophys.workflow.custom.WorkflowValidationError

Also available as petrophys.workflow.WorkflowValidationError

class WorkflowValidationError(message, problems=None)[source]

Bases: ValueError

A workflow is malformed or cannot run on a well.

Raised when a step name is used twice, when a step needs a curve that only a later step produces, and by Workflow.run(..., strict=True) when steps lack required inputs. problems lists one dictionary per unmet requirement (step, requires and reason).

Parameters:
  • message (str)

  • problems (Optional[Sequence[Mapping[str, str]]])