Skip to content

Extended settings checker#40

Open
jpn-- wants to merge 5 commits into
ActivitySim:mainfrom
driftlesslabs:extended-settings-checker
Open

Extended settings checker#40
jpn-- wants to merge 5 commits into
ActivitySim:mainfrom
driftlesslabs:extended-settings-checker

Conversation

@jpn--

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

Copy link
Copy Markdown
Member

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]

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new settings_checker extension intended to validate model settings (via Pydantic models) and enables model settings checking in the resident configuration.

Changes:

  • Added extensions/settings_checker.py with an EXTENSION_CHECKER_SETTINGS mapping of model/step names to settings classes and YAML files.
  • Registered the new extension in extensions/__init__.py.
  • Enabled check_model_settings: True in configs/resident/settings.yaml and configs/resident/settings_mp.yaml (and added distributed time-factor settings in settings.yaml).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
extensions/settings_checker.py Introduces the settings validation mapping used by the new checker extension.
extensions/init.py Registers the new settings_checker extension module.
configs/resident/settings.yaml Enables model settings checking and adds distributed time-factor parameters.
configs/resident/settings_mp.yaml Enables model settings checking for multiprocess runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread extensions/settings_checker.py Outdated
Comment thread extensions/settings_checker.py Outdated
Comment on lines +20 to +23
"airport_returns": {
"settings_cls": PydanticReadable,
"settings_file": "airport_returns.yaml"
},
Comment thread configs/resident/settings.yaml Outdated
jpn-- and others added 2 commits July 21, 2026 10:38
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

3 participants