Notification (Python)
The Notification Cython class is a thin wrapper around the C++
notification class. It is a base class that provides coloured
console output, verbosity control, and warning/error counting.
The class is not normally instantiated directly. All framework classes
that inherit from notification (such as Analysis,
IO, ParticleTemplate, etc.) automatically gain its
logging interface.
C++ notification Interface
Method / field |
Description |
|---|---|
|
Set to |
|
Print an informational message (green prefix). |
|
Print a warning message (yellow prefix) and increment the warning counter. |
|
Print an error message (red prefix) and increment the failure counter. |
|
Print a success message (green tick prefix). |
|
Print an in-place progress bar. |