added +1 to nanmax(material) as auto offset, now consistent with help and intention...

This commit is contained in:
Philip Eisenlohr 2020-11-03 17:43:57 -05:00
parent 6a5f23a0bd
commit eaceb16203
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,