Weights and indices for linear interpolation/extrapolation

I’m confused, why can’t you use searchsortedlast? You almost certainly don’t want to use a tuple to store a long array of grid points.