Use logging instead of printing
Depending on the usage of the simulations, we want to be able to controll the verbosity level of output. Python libs should generally not use print
but rather make use of the logging library. This has inert controll over the verbosity by using logging.debug
or logging.info
or logging.warning
or logging.error
to classify the urgency. The user can then controll the verbosity by setting the logging_level (logging.basicConfig(level=logging.INFO)
)