armi.localization.strings module¶
Contains constant strings
If necessary, in the future, it will also contain translations.
DO NOT use imports or calculated strings… everything in this file should be constant.
Notes
This may be a good place to use https://docs.python.org/3/library/gettext.html
-
armi.localization.strings.SCIENTIFIC_PATTERN= '[+-]?\\d*\\.\\d+[eEdD][+-]\\d+'¶ Matches: * code:` 1.23e10` * code:-1.23Ee10 * code:+1.23d10 * code:` .23D10` * code:` 1.23e-10` * code:` 1.23e+1`
-
armi.localization.strings.FLOATING_PATTERN= '[+-]?\\d+\\.*\\d*'¶ Matches 1, 100, 1.0, -1.2, +12.234
-
armi.localization.strings.DECIMAL_PATTERN= '[+-]?\\d*\\.\\d+'¶ matches .1, 1.213423, -23.2342, +.023