validator¶
validator ¶
PyAERMOD Configuration Validator
Validates AERMOD input parameters before generating .inp files. Catches errors early with clear Python-side messages instead of letting invalid parameters silently produce bad input files that AERMOD rejects at runtime.
ValidationError
dataclass
¶
A single validation error with context.
ValidationResult
dataclass
¶
Collection of validation errors and warnings.
Validator ¶
Validates an AERMODProject configuration.
Usage::
from pyaermod.validator import Validator
result = Validator.validate(project)
if not result.is_valid:
print(result)
raise ValueError(str(result))
validate
classmethod
¶
Validate an entire AERMODProject.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
AERMODProject
|
The project to validate. |
required |
check_files
|
bool
|
If True, verify that meteorology files exist on disk. |
False
|
advanced
|
bool
|
If True (default), also run the cross-field checks from
:mod: |
True
|
Returns:
| Type | Description |
|---|---|
ValidationResult
|
|