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

Allowing users to define flag names with digits #1966

Merged
merged 4 commits into from
Oct 22, 2024
Merged

Allowing users to define flag names with digits #1966

merged 4 commits into from
Oct 22, 2024

Conversation

john-science
Copy link
Member

@john-science john-science commented Oct 21, 2024

What is the change?

Historically, ARMI Flags have been all-caps and English Alphabet only: FUEL, DUCT``, FEED`, and so on. And if you added a numerical digit into the mix, it would be ignored (for various reasons).

This PR makes it so if the user defines a parameter it will be treated as an exception to the "letters only" rule, and handled exactly as-is.

This is only meant to support "upper case letters and numbers though". This PR still does not support flag names with:

  • whitespace
  • non-English characters
  • special characters, like punctuation
  • very long names

Why is the change being made?

This was a feature request made by downstream users.


Checklist

  • The release notes have been updated if necessary.
  • The documentation is still up-to-date in the doc folder.
  • The dependencies are still up-to-date in pyproject.toml.

@john-science john-science added the feature request Smaller user request label Oct 21, 2024
@john-science john-science changed the title Allow for users to define flags with numerical values Allow users to define flag names with numerical values Oct 21, 2024
armi/reactor/flags.py Outdated Show resolved Hide resolved
@john-science john-science merged commit 719b999 into main Oct 22, 2024
19 checks passed
@john-science john-science deleted the type_one branch October 22, 2024 18:32
@john-science john-science changed the title Allow users to define flag names with numerical values Allowing users to define flag names with digits Oct 22, 2024
drewj-tp added a commit that referenced this pull request Oct 22, 2024
* main:
  Allowing users to define flag names with digits (#1966)
  Revert "Updating cluster settings (#1958)" (#1965)
drewj-tp added a commit that referenced this pull request Oct 23, 2024
…xial-linkage

* origin/main:
  Loading some ARMI DBs without the App that created them (#1917)
  Revert "Revert "Updating cluster settings (#1958)" (#1965)" (#1969)
  Allowing users to define flag names with digits (#1966)
  Revert "Updating cluster settings (#1958)" (#1965)
  Updating cluster settings (#1958)
  Reducing warnings while building the docs (#1959)
  Moving anl-afci-177 test files to their own directory (#1957)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Smaller user request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants