JohannesBuchner / regulargrid

Regular Grid Multivariate linear interpolation
BSD 2-Clause "Simplified" License
21 stars 1 forks source link

YOUR regulargrid.interpn IS WRONG!! #5

Closed dogod621 closed 8 years ago

dogod621 commented 8 years ago

At regulargrid.interpn line 23: a = interp1d(q[j], a, axis=j, kind=method)(qi[j])

Please fix the axis error"axis=0 for any dimension at loop": a = interp1d(q[j], a, axis=0, kind=method)(qi[j])

JohannesBuchner commented 8 years ago

This package is outdated. Please use scipy.interpolate.RegularGridInterpolator instead: https://scipy.github.io/devdocs/generated/scipy.interpolate.RegularGridInterpolator.html It is more general, shorter, and much faster code.