There turns out to be an API problem with Grid, due to some foolishness on my part. Given a two-dimensional InterpGrid object A, one can do interpolation with A[x,y]. However, because of Counter, I also allowed a syntax A[c] where c is the two-vector [x,y]. This, of course, violates all expectations of how a vectorized getindex should work. My intention is to change this so that it's much more in line with the rest of Julia. However, if you're using this feature it will be a breaking change, with no graceful deprecation that I see (because you want to allow a one-dimensional InterpGrid object to support A[v]).
InterpGrid will also become of a subtype of AbstractArray and have a number of other changes in its declaration that mesh better with the rest of Julia.
There turns out to be an API problem with Grid, due to some foolishness on my part. Given a two-dimensional
InterpGrid
objectA
, one can do interpolation withA[x,y]
. However, because ofCounter
, I also allowed a syntaxA[c]
wherec
is the two-vector[x,y]
. This, of course, violates all expectations of how a vectorizedgetindex
should work. My intention is to change this so that it's much more in line with the rest of Julia. However, if you're using this feature it will be a breaking change, with no graceful deprecation that I see (because you want to allow a one-dimensionalInterpGrid
object to supportA[v]
).InterpGrid
will also become of a subtype ofAbstractArray
and have a number of other changes in its declaration that mesh better with the rest of Julia.