labscript.utils.suppress_mild_warnings
- suppress_mild_warnings(state=True)[source]
A context manager which modifies compiler.suppress_mild_warnings
Allows the user to suppress (or show) mild warnings for specific lines. Useful when you want to hide/show all warnings from specific lines.
- Parameters:
state (bool) – The new state for
compiler.suppress_mild_warnings
. Defaults toprovided. (True if not explicitly) –