armi.localization package

The localization package is a rarely-used minor attempt to provide language localization.

Warning

The ARMI project is likely going to phase this out. If the project decides to introduce better support for localization, a more standard approach should be used (e.g. one based on https://docs.python.org/3/library/gettext.html). Thus, it is recommended to not extend usage of this module at this time.

armi.localization.count_calls(func)[source]

Do not use this decorator directly.

Decorator to count the number of calls to a method

armi.localization.info(func)[source]

Decorator to write to current log, using the info method

armi.localization.important(func)[source]

Decorator to write to current log, using the inportant method

armi.localization.warn(func)[source]

Decorates a method to produce a repeatable warning message.

armi.localization.info_once(func)[source]

Decorator to have message only appear once.

armi.localization.warn_once(func)[source]

Decorates a method to produce a single warning message.

armi.localization.warn_when_root(func)[source]

Decorates a method to produce a warning message only on the root node.

armi.localization.warn_once_when_root(func)[source]

Decorates a method to produce a single warning message from the root node.