Skip to content

Extended settings checker#40

Open
jpn-- wants to merge 3 commits intoActivitySim:mainfrom
driftlesslabs:extended-settings-checker
Open

Extended settings checker#40
jpn-- wants to merge 3 commits intoActivitySim:mainfrom
driftlesslabs:extended-settings-checker

Conversation

@jpn--
Copy link
Copy Markdown
Member

@jpn-- jpn-- commented Apr 7, 2026

This pull request introduces a new extension, settings_checker, and integrates it into the project. The main goal is to provide a mechanism for verifying model-specific settings using Pydantic data models. Additionally, it enables this settings check in two configuration files. The most important changes are as follows:

New extension for settings validation:

  • Added a new module, settings_checker.py, which defines EXTENSION_CHECKER_SETTINGS. This mapping links model names to their respective Pydantic settings classes and YAML settings files, facilitating automated validation of model settings.
  • Registered the new settings_checker extension in extensions/__init__.py, making it available to the application.

Configuration updates:

  • Enabled model settings checking by adding check_model_settings: True to configs/resident/settings.yaml and configs/resident/settings_mp.yaml. This activates the new validation logic during model runs. [1] [2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants