On Thu, Nov 22, 2018 at 12:19 AM Aronne Merrelli <aronne.merrelli@gmail.com> wrote:
Hello,
I am having a problem with the LinearNDInterpolator in SciPy, where it looks like there is a memory leak. I have a simple example here, all I do is setup a very small LinearNDInterpolator object and call the interpolator many times in a loop:
https://gist.github.com/aronnem/707dfeec07b74888fb7390d828684184
Note that if the "pts_list" and "vals" are swapped with the integer versions, there is no leak. Using the floats seems to produce the leak. I have tried both conda and Canopy installed environments, they all seem to have the same behavior. For example, here is the output I get with a scipy 1.1.0 compiled with Cython 0.28.5, numpy 1.13.3 on Mac OS X:
I can reproduce what you see on scipy 1.1.0, cython 0.28.2, numpy 1.15.4 on debian. Also, the behaviour seems to depend on the type of `vals`; leaving `pts_list` as floats doesn't trigger the problem. AndrĂ¡s