Merge branch 'fix-vicinity-auto-offset' into 'development'

correct auto-offset in Geom.vicinity_offset

See merge request damask/DAMASK!269
This commit is contained in:
Sharan Roongta 2020-11-04 03:55:06 +01:00
commit 14209f3a1f
1 changed files with 1 additions and 1 deletions

View File

@ -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,