Configuration¶
This module validates configuration for static PF and OPF generation.
validate_static_config¶
Validate and normalize a static PF or OPF configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
Mapping[str, Any]
|
Parsed configuration mapping. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Validated configuration with established defaults applied. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If required fields are missing, values have invalid types or ranges, or unknown fields are present. |
Source code in gridfm_datakit/config.py
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 | |