Skip to content

Commit

Permalink
Minor language fixes, by John.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science authored Jan 24, 2024
1 parent e20619f commit 6517d9e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions armi/reactor/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,11 @@ def fromString(cls, typeSpec):
:implements: R_ARMI_FLAG_TO_STR
For a string passed as ``typeSpec``, first converts the whole string
to uppercase.
Then tries to parse the string for any special phrases, as defined
in the module dictionary ``_CONVERSIONS``, and converts those phrases
to flags directly.
to uppercase. Then tries to parse the string for any special phrases, as
defined in the module dictionary ``_CONVERSIONS``, and converts those
phrases to flags directly.
Then splits the remaining string into separate words based on the presence
Then it splits the remaining string into separate words based on the presence
of spaces. Looping over each of the words, any numbers are stripped out
and the remaining string is matched up to any class attribute names.
If any matches are found these are returned as flags.
Expand Down

0 comments on commit 6517d9e

Please sign in to comment.