added +1 to nanmax(material) as auto offset, now consistent with help and intention...
This commit is contained in:
parent
6a5f23a0bd
commit
eaceb16203
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue