colour.utilities.suppress_warnings¶
-
colour.utilities.
suppress_warnings
(colour_warnings=True, colour_runtime_warnings=False, colour_usage_warnings=False, python_warnings=False)[source]¶ A context manager filtering Colour and also optionally overall Python warnings.
- Parameters
colour_warnings (bool, optional) – Whether to filter Colour warnings, this also filters Colour usage and runtime warnings.
colour_runtime_warnings (bool, optional) – Whether to filter Colour runtime warnings.
colour_usage_warnings (bool, optional) – Whether to filter Colour usage warnings.
python_warnings (bool, optional) – Whether to filter Python warnings.