colour.utilities.is_ndarray_copy_enabled#
- colour.utilities.is_ndarray_copy_enabled() bool [source]#
Return whether Colour
numpy.ndarray
copy is enabled: Various API objects return a copy of their internalnumpy.ndarray
for safety purposes but this can be a slow operation impacting performance.- Returns:
Whether Colour
numpy.ndarray
copy 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