pofff.utils.runs module#
Execute simulation, data, history-matching, and plotting workflows.
The functions run OPM Flow and the maintained data scripts, launch ERT or Everest, postprocess ensemble results, and coordinate benchmark maps, sparse values, Wasserstein comparisons, and error tables.
- pofff.utils.runs._run(cmd: Sequence[str]) None[source]#
Execute a command and abort if it fails.
- Parameters:
- cmdSequence[str]
Command and arguments to execute without a shell.
- Raises:
- subprocess.CalledProcessError
If the command exits with a nonzero status.
- pofff.utils.runs.benchmark(cfg: PofffConfig) None[source]#
Generate benchmark figures and comparisons.
- Parameters:
- cfgPofffConfig
Shared pofff configuration and derived runtime state.
- pofff.utils.runs.data(cfg: PofffConfig) None[source]#
Generate benchmark time-series and spatial data.
- Parameters:
- cfgPofffConfig
Shared pofff configuration and derived runtime state.
- Raises:
- subprocess.CalledProcessError
If a data or metric script exits with a nonzero status.
- pofff.utils.runs.ert(cfg: PofffConfig) None[source]#
Run ERT with configured arguments.
- Parameters:
- cfgPofffConfig
Shared pofff configuration and derived runtime state.
- Raises:
- subprocess.CalledProcessError
If ERT exits with a nonzero status.
- pofff.utils.runs.everest() None[source]#
Run Everest optimization and skip interactive prompts.
- Raises:
- subprocess.CalledProcessError
If Everest exits with a nonzero status.
- pofff.utils.runs.flow(cfg: PofffConfig) None[source]#
Run the OPM Flow simulator with configured options.
- Parameters:
- cfgPofffConfig
Shared pofff configuration and derived runtime state.
- Raises:
- subprocess.CalledProcessError
If OPM Flow exits with a nonzero status.
- pofff.utils.runs.postprocess(cfg: PofffConfig) None[source]#
Postprocess ERT and Everest simulation results.
- Parameters:
- cfgPofffConfig
Shared pofff configuration and derived runtime state.