Today I discovered that the nice scipy 1d interpolation function interp1d requires that the values in x-array passed as the first argument are in ascending order. Perhaps this makes sense but it took me some time to figure out that this was the reason I was getting out-of-bounds errors (my x-array was in descending order).
Showing posts with label scipy. Show all posts
Showing posts with label scipy. Show all posts
Monday, October 6, 2014
Subscribe to:
Posts (Atom)