summaryrefslogtreecommitdiff
path: root/silx/math
diff options
context:
space:
mode:
authorPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>2020-08-03 19:24:39 +0200
committerPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>2020-08-03 19:24:39 +0200
commit5ad425ff4e62f5e003178813ebd073577679a00e (patch)
treec01308b15480effdc3749909c1ce3a012ed2a82f /silx/math
parent328032e2317e3ac4859196bbf12bdb71795302fe (diff)
New upstream version 0.13.1+dfsg
Diffstat (limited to 'silx/math')
-rw-r--r--silx/math/colormap.pyx2
1 files changed, 2 insertions, 0 deletions
diff --git a/silx/math/colormap.pyx b/silx/math/colormap.pyx
index dde249d..2495f3c 100644
--- a/silx/math/colormap.pyx
+++ b/silx/math/colormap.pyx
@@ -453,6 +453,8 @@ def _cmap(data_types[:] data,
:param nan_color: Color to use for NaN value.
:return: The generated image
"""
+ cdef image_types[:, ::1] output
+
# Proxy for calling the right implementation depending on data type
if data_types in lut_types: # Use LUT implementation
output = compute_cmap_with_lut(