colour.utilities.set_array_api_enabled#

colour.utilities.set_array_api_enabled(enable: bool) → None[source]#

Set the Colour Array API dispatch enabled state.

Parameters:

enable (bool) – Whether to enable Colour Array API dispatch.

Return type:

None

Examples

>>> with array_api_enable(True):
...     print(is_array_api_enabled())
...     set_array_api_enabled(False)
...     print(is_array_api_enabled())
True
False