Skip to content
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

Validate YAML Files #495

Merged
merged 7 commits into from
Dec 1, 2021
Merged

Conversation

john-science
Copy link
Member

At some point, I believe we turned off validation of YAML files, but kept the validation on XML files. I'm not sure when, how, or why. But this PR applies the XML validation we have been doing the past ~two years to the YAML files.

This will probably raise some warnings for people that they don't expect. It might make people take a closer look at their materials, for instance. But it will also straight up throw warnings, and prompt users to acknowledge if there are bogus settings going into a file (see my unit test for an example).

This PR closes this ticket: #461

@john-science john-science added the enhancement New feature or request label Nov 30, 2021
@john-science john-science linked an issue Nov 30, 2021 that may be closed by this pull request
Copy link
Member

@jakehader jakehader left a comment

Choose a reason for hiding this comment

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

See comments.

Copy link
Member

@ntouran ntouran left a comment

Choose a reason for hiding this comment

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

minor refactor request

armi/settings/settingsIO.py Outdated Show resolved Hide resolved
@john-science john-science merged commit b1c18bd into terrapower:master Dec 1, 2021
@john-science john-science deleted the validate_yamls branch December 1, 2021 17:28
scottyak pushed a commit to scottyak/armi that referenced this pull request Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No warning on unused/bogus case settings
3 participants