From eaceb16203504791f7a2ad2e43224fad1f7546fd Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Tue, 3 Nov 2020 17:43:57 -0500 Subject: [PATCH] added +1 to nanmax(material) as auto offset, now consistent with help and intention... --- python/damask/_geom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/_geom.py b/python/damask/_geom.py index 03179aac9..9a8c55cd0 100644 --- a/python/damask/_geom.py +++ b/python/damask/_geom.py @@ -840,7 +840,7 @@ class Geom: if len(trigger) == 0 else np.in1d(stencil,np.array(list(set(trigger) - {me})))) - offset_ = np.nanmax(self.material) if offset is None else offset + offset_ = np.nanmax(self.material)+1 if offset is None else offset mask = ndimage.filters.generic_filter(self.material, tainted_neighborhood, size=1+2*vicinity,