<div dir="ltr">The pull request has been made.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 23, 2019 at 11:29 AM Edouard Goudenhoofdt <<a href="mailto:egouden@gmail.com">egouden@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear Simon,</div><div><br></div><div>Thank you for your comment.<br></div><div>For the sake of time I just kept the current implementation while saving weights.</div><div>I guess it could later be used as a reference to benchmark your approach.<br></div><div><br></div><div>Best regards,</div><div><br></div><div>Edouard<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 3:45 PM Simon S. Clift <<a href="mailto:ssclift@gmail.com" target="_blank">ssclift@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Edouard,</div><div><br></div><div>I'll keep an eye out for your pull request, or perhaps you could send me a note on your use case to my gmail address.  My approach just consists of saving the interpolation weights in a sparse matrix then doing a sparse multiply for subsequent interpolations.  Weights can be either multi-linear or using barycentric co-ordinates on regular grids; it's an arbitrary choice unless you have a simplicial grid layout you prefer.</div><div><br></div><div>Cheers</div><div>-- Simon</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 8:50 AM Ralf Gommers <<a href="mailto:ralf.gommers@gmail.com" target="_blank">ralf.gommers@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 2:33 PM Edouard Goudenhoofdt <<a href="mailto:egouden@gmail.com" target="_blank">egouden@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This is clearly a duplicate of your previous post (How can I search the mailing list?).</div></div></blockquote><div><br></div><div>Yeah, good question .... that's kind of problematic at the moment. Eventually we'll switch to Mailman 3 which has a sane search interface. Sorry, we don't have a better answer than using Google et al. right now.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I think this is a basic task for many geoscientists.<br></div><div></div><div>I did not make the effort to understand Simon Clift smarter approach.</div><div>But I already implemented a quick solution using a switch for the two use cases.</div><div>May I submit a pull request?<br></div></div></blockquote><div><br></div><div>It's now come up a couple of times, so clearly there's interest. Yes, opening a PR would be very helpful.</div><div><br></div><div>Cheers,</div><div>Ralf</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 12:47 PM Dieter Werthmüller <<a href="mailto:Dieter@werthmuller.org" target="_blank">Dieter@werthmuller.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Edouard,<br>
<br>
I think this thread touched on that a bit:<br>
<a href="https://mail.python.org/pipermail/scipy-dev/2019-May/023540.html" rel="noreferrer" target="_blank">https://mail.python.org/pipermail/scipy-dev/2019-May/023540.html</a><br>
<br>
So Simon Clift might have already some functional code for that which<br>
could serve as a starting point.<br>
<br>
I personally would be certainly interested in the functionality.<br>
<br>
Dieter<br>
<br>
<br>
On 18/09/2019 11:50, Edouard Goudenhoofdt wrote:<br>
> Dear scipy developers,<br>
> <br>
> One could use /scipy.interpolate.RegularGridInterpolator/ at different<br>
> times with different values but the same source grid and target points.<br>
> Currently this would recompute the indices each time the function is called.<br>
> I would like to add the possibility to provide the target points at<br>
> initialisation and the values when calling the object.<br>
> <br>
> Best regards,<br>
> <br>
> Edouard Goudenhoofdt<br>
> //<br>
> <br>
> _______________________________________________<br>
> SciPy-Dev mailing list<br>
> <a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
> <br>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
</blockquote></div>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
</blockquote></div></div>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">1129 Ibbetson Lane<br>Mississauga, Ontario<br>L5C 1K9       Canada</div>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
</blockquote></div>
</blockquote></div>