Skip to content
Snippets Groups Projects
Commit 1afc1a85 authored by Dieter Weber's avatar Dieter Weber
Browse files

Do not convert to ndarray since supporting ragged tuples is useful for 2D visualization,

like (data.real, data.imag, 0) for complex numbers. This will trigger a deprecation warning since NumPy 1.19.
parent 47fd1609
No related branches found
No related tags found
No related merge requests found
Pipeline #27494 passed
...@@ -64,7 +64,7 @@ class Colormap3D(colors.Colormap, metaclass=abc.ABCMeta): ...@@ -64,7 +64,7 @@ class Colormap3D(colors.Colormap, metaclass=abc.ABCMeta):
""" """
self._log.debug('Calling rgb_from_vector') self._log.debug('Calling rgb_from_vector')
x, y, z = np.asarray(vector) x, y, z = vector
R = np.sqrt(x ** 2 + y ** 2 + z ** 2) R = np.sqrt(x ** 2 + y ** 2 + z ** 2)
R_max = vmax if vmax is not None else R.max() + 1E-30 R_max = vmax if vmax is not None else R.max() + 1E-30
# FIRST color dimension: HUE (1D ring/angular direction) # FIRST color dimension: HUE (1D ring/angular direction)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment