Closed asinghvi17 closed 3 days ago
Does it need .source?
Probably .dest has the data, and you should just plot the output.
The return value should be the new switched array. Its not mutable. ah right you have that
(I only use the abstract type so it may also be broken)
Source and dest are the same here...so it may actually be a broken constructor or something. Will have a look...
As far as I can tell, this looks correct now. Potentially a consequence of the DiskArrays PR I made for collect_similar
.
There are other major problems with SwitchingStencilArray, I'm fixing it currently
I only use it as an abstract type through DynamicGrids and the one here is not well tested
When using a SwitchedStencilArray with either a Raster or a regular Array, under
mapstencil!
, I get extremely strange output.mapstencil
seems to be fine.Example: