remove second nanMask = np.isnan(data)
This commit is contained in:
parent
daeacad71f
commit
6f34da586d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user