colour.utilities.is_ndarray_copy_enabled#
- colour.utilities.is_ndarray_copy_enabled() bool[source]#
Return whether Colour
numpy.ndarraycopy is enabled: Various API objects return a copy of their internalnumpy.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