-
Notifications
You must be signed in to change notification settings - Fork 10
Add ARCHETYPE_REQUIRED_PARAMS to config.py #956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ARCHETYPE_REQUIRED_PARAMS to config.py #956
Conversation
…bs to building_archetype params
🔍 Schema Preview DeployedPreview URLs:
Production URLs (unchanged):
|
Co-authored-by: dayantur <71443948+dayantur@users.noreply.github.com>
|
🤖 I've automatically formatted the code in this PR using:
Please pull the latest changes before making further edits. |
…uilding_archetype logic
…tebbs-on' of https://github.com/UMEP-dev/SUEWS into dayantur/validator/fix/required-archetype-params-when-stebbs-on
…params-when-stebbs-on
…uilding_archetype is absent Make _validate_stebbs continue and enumerate missing params even if building_archetype is absent. Add a small empty container instead of early-return so tests that expect "Missing required STEBBS parameters:" pass.
sunt05
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dayantur - looks good to me :)
|
@sunt05 seems that some tests (unrelated to this work) are failing on remote when adding this PR to merge queue. I had a look at that and all seems related to udunits2 not installed on remote? |
|
Hi @dayantur this is caused by a recent change in a dependency package - sorting it out now. |
* add ARCHETYPE_REQUIRED_PARAMS to config.py and extend _validate_stebbs to building_archetype params * style: auto-format code with ruff and fprettify Co-authored-by: dayantur <71443948+dayantur@users.noreply.github.com> * refactor _validate_stebbs to use a single logic for both stebbs and building_archetype logic * update CHANGELOG.md * fix: _validate_stebbs continue and enumerate missing params even if building_archetype is absent Make _validate_stebbs continue and enumerate missing params even if building_archetype is absent. Add a small empty container instead of early-return so tests that expect "Missing required STEBBS parameters:" pass. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…params-when-stebbs-on
While addressing #851, I noticed ArchetypeProperties params were missing from _validate_stebbs in config.py.
When stebbsmethod ==1, _validate_stebbs must check for parmaters in stebbs AND building_archetype blocks.