Skip to content

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(project, check_files: bool = False, advanced: bool = True) -> ValidationResult

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:validator_advanced (stack-parameter consistency, receptor-domain extent, DFAULT consistency, ANNUAL met coverage). Pass advanced=False to restrict output to only the base per-field checks.

True

Returns:

Type Description
ValidationResult