colour.utilities.is_ndarray_copy_enabled#
- colour.utilities.is_ndarray_copy_enabled() bool[source]#
Determine whether Colour
numpy.ndarraycopy is enabled.Various API objects return a copy of their internal
numpy.ndarrayfor safety purposes, but this can be a slow operation impacting performance.- Returns:
Whether Colour
numpy.ndarraycopy is enabled.- Return type:
Examples
>>> with ndarray_copy_enable(False): ... is_ndarray_copy_enabled() False >>> with ndarray_copy_enable(True): ... is_ndarray_copy_enabled() True