colour.utilities.set_ndarray_copy_enable#

colour.utilities.set_ndarray_copy_enable(enable: bool)[source]#

Set Colour numpy.ndarray copy enabled state.

Parameters:

enable (bool) – Whether to enable Colour numpy.ndarray copy.

Examples

>>> with ndarray_copy_enable(is_ndarray_copy_enabled()):
...     print(is_ndarray_copy_enabled())
...     set_ndarray_copy_enable(False)
...     print(is_ndarray_copy_enabled())
True
False