pofff.config.config module

Central configuration models for pofff.

Defines structured configuration objects used across the codebase: - CliConfig: raw CLI inputs - PofffConfig: unified runtime and TOML-based configuration

class pofff.config.config.CliConfig(fol: Path, deck: Path, jobs: Path, experiment: str, times: str, msat: str, mcon: str, mode: str, figures: str, location: str, use: str)

Bases: object

Container for command-line arguments before normalization.

deck: Path
experiment: str
figures: str
fol: Path
jobs: Path
location: str
mcon: str
mode: str
msat: str
times: str
use: str
class pofff.config.config.PofffConfig(path: Path, fol: Path = PosixPath('output'), deck: Path = PosixPath('output'), jobs: Path = PosixPath('output'), experiment: str = 'run2', times: str = '0.25', msat: str = '1e-2', mcon: str = '1e-1', mode: str = 'single', figures: str = 'basic', location: str = '', use: str = '1', flow: str = 'flow', grid: str = 'corner-point', thickness: str = 'final', mult_thickness: float = 1.0, x: List[int] = <factory>, z: List[int] = <factory>, temperature: List[float] = <factory>, pressure: float = 0.0, diffusion: ndarray = <factory>, sources: List[List[float]] = <factory>, inj: List[List[Any]] = <factory>, krw: str = '(max(0, (sw - swi) / (1 - swi))) ** nkrw', krn: str = '(max(0, (1 - sw - sni) / (1 - sni))) ** nkrn', cap: str = 'pen * ((sw-swi) / (1-swi)) ** (-(1.0 / npen))', cores: int | None = None, maxtime: float | None = None, delete: bool | None = None, ertargs: str | None = None, ensembles: int | None = None, enkf_alpha: float | None = None, errors: ndarray | None = None, random_seed: int | None = None, min_realizations_success: int | None = None, max_function_evaluations: int | None = None, max_batch_num: int | None = None, args: Any, ...] | None=None, strategy: str | None = None, maxiter: int | None = None, popsize: int | None = None, tol: float | None = None, mutation: float | ~typing.Tuple[float, float] | None=None, recombination: float | None = None, rng: Any | None = None, callback: Callable | None = None, disp: bool | None = None, polish: bool | None = None, init: str | None = None, atol: float | None = None, updating: str | None = None, workers: int | None = None, constraints: Iterable[Any] | None = None, x0: Sequence[float] | None = None, integrality: Sequence[bool] | None = None, vectorized: bool | None = None, facies: list = <factory>, fluxnum: list = <factory>, fipnum: list = <factory>, porv: list = <factory>, multpv: list | None = <factory>, dx: list | None = <factory>, dz: list | None = <factory>, dims: List[float] = <factory>, sensors: List[List[float]] = <factory>, sensor_ik: List[List[int]] = <factory>, source_ik: List[List[int]] = <factory>, boxa: List[List[float]] = <factory>, boxb: List[List[float]] = <factory>, boxc: List[List[float]] = <factory>, hm: Dict[str, ~typing.Any]=<factory>, monotonic: bool = False, hascellmaps: bool = False, everert: bool = False, tuning: bool = False, para: Dict[str, ~typing.Any]=<factory>, nxz: List[int] = <factory>, data: str | None = None)

Bases: object

Central configuration object for pofff.

Combines CLI options, TOML inputs, and derived runtime settings.

args: Tuple[Any, ...] | None
atol: float | None
boxa: List[List[float]]
boxb: List[List[float]]
boxc: List[List[float]]
callback: Callable | None
cap: str
constraints: Iterable[Any] | None
cores: int | None
data: str | None
deck: Path
delete: bool | None
diffusion: ndarray
dims: List[float]
disp: bool | None
dx: list | None
dz: list | None
enkf_alpha: float | None
ensembles: int | None
errors: ndarray | None
ertargs: str | None
everert: bool
experiment: str
facies: list
figures: str
fipnum: list
flow: str
fluxnum: list
fol: Path
grid: str
hascellmaps: bool
hm: Dict[str, Any]
init: str | None
inj: List[List[Any]]
integrality: Sequence[bool] | None
jobs: Path
krn: str
krw: str
location: str
max_batch_num: int | None
max_function_evaluations: int | None
maxiter: int | None
maxtime: float | None
mcon: str
min_realizations_success: int | None
mode: str
monotonic: bool
msat: str
mult_thickness: float
multpv: list | None
mutation: float | Tuple[float, float] | None
nxz: List[int]
para: Dict[str, Any]
path: Path
polish: bool | None
popsize: int | None
porv: list
pressure: float
random_seed: int | None
recombination: float | None
rng: Any | None
sensor_ik: List[List[int]]
sensors: List[List[float]]
source_ik: List[List[int]]
sources: List[List[float]]
strategy: str | None
temperature: List[float]
thickness: str
times: str
tol: float | None
tuning: bool
updating: str | None
use: str
vectorized: bool | None
workers: int | None
x: List[int]
x0: Sequence[float] | None
z: List[int]