expreccs.utils.inputvalues module#
Load, validate, and normalize TOML configuration for expreccs.
The module combines validated simulation input with command-line and runtime settings, derives grid and saturation-table dimensions, and preprocesses OPM Flow TUNING records. Validation reports unknown values, missing variables, and incompatible shapes through the shared terminal-formatting helpers.
- process_input(dic, in_file)[source]#
Load TOML input and add validated values to the runtime configuration.
- _validate_numeric_array(cfg_file, key, errors, *, length=None, positive=False, integer=False)[source]#
Validate a one-dimensional numeric configuration array.
- Parameters:
- cfg_filedict[str, Any]
TOML configuration values.
- keystr
Configuration variable name.
- errorslist[str]
Accumulated validation messages.
- Returns:
- bool
Whether the array is valid.
- Parameters:
- Return type:
- _validate_numeric_matrix(cfg_file, key, errors, columns)[source]#
Validate a numeric configuration matrix.
- Parameters:
- cfg_filedict[str, Any]
TOML configuration values.
- keystr
Configuration variable name.
- errorslist[str]
Accumulated validation messages.
- columnsint
Required number of matrix columns.
- Returns:
- bool
Whether the matrix is valid.
- Parameters:
- Return type: