test only use modern Result.view API

This commit is contained in:
Martin Diehl 2022-03-09 15:36:20 +01:00
parent b916712946
commit 98033e41dc
2 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit 68111b8fc3fb45f77d7471ae0f57961b4c77641d
Subproject commit 80152236ef4259e97e10838fdd3bce1dc8b50105

View File

@ -971,10 +971,10 @@ class Grid:
extra_keywords = dict(selection=util.ensure_integer_list(selection),invert=invert_selection)
material = ndimage.filters.generic_filter(
self.material,
mostFrequent,
size=(stencil if selection is None else stencil//2*2+1,)*3,
mode=('wrap' if periodic else 'nearest'),
self.material,
mostFrequent,
size=(stencil if selection is None else stencil//2*2+1,)*3,
mode=('wrap' if periodic else 'nearest'),
extra_keywords=extra_keywords,
).astype(self.material.dtype)
return Grid(material = material,