atomica.utils.Quiet¶
- class atomica.utils.Quiet(show_warnings=True)[source]¶
Bases:
object
Atomica quiet context
This object can be used in a with/as block to temporarily suppress Atomica output, with the logger level reset at the end of the block
Example usage:
>>> with at.Quiet(): >>> res = P.run_sim()
Initialize standard context
Initialization captures the current logger level at the time the context is created.
- Parameters:
show_warnings – If True, logger will be temporarily set at WARNING level. If False, all output will be suppressed by setting logger above CRITICAL
Methods