remove second nanMask = np.isnan(data)

This commit is contained in:
Jan Kotanski 2020-03-13 11:01:47 +01:00 committed by Kenneth Lyons
parent daeacad71f
commit 6f34da586d

View File

@ -1117,7 +1117,6 @@ def makeARGB(data, lut=None, levels=None, scale=None, useRGBA=False):
nanMask = np.isnan(data)
if data.ndim > 2:
nanMask = np.any(nanMask, axis=-1)
nanMask = np.isnan(data)
# Apply levels if given
if levels is not None:
if isinstance(levels, np.ndarray) and levels.ndim == 2: