From e33895dd35d52e6b13cdf6360498311d7f492bb0 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 21 Jun 2020 10:37:09 +0200 Subject: [PATCH] [skip ci] better logic --- python/damask/_lattice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/_lattice.py b/python/damask/_lattice.py index 0ebaa883d..251821868 100644 --- a/python/damask/_lattice.py +++ b/python/damask/_lattice.py @@ -457,7 +457,7 @@ class Symmetry: rgb = (theComponents/np.linalg.norm(theComponents,axis=-1,keepdims=True))**0.5 # smoothen color ramps rgb = np.minimum(1.,rgb) # limit to maximum intensity rgb /= np.max(rgb,axis=-1,keepdims=True) # normalize to (HS)V = 1 - rgb[~np.broadcast_to(in_SST.reshape(vector[...,0].shape+(1,)),vector.shape)] = 0.0 + rgb[np.broadcast_to(~in_SST.reshape(vector[...,0].shape+(1,)),vector.shape)] = 0.0 return (in_SST,rgb) else: return in_SST