Commit ee8aa4a
committed
feat: extend interpolation methods using SciPy RegularGridInterpolator (closes #261)
- Add support for 'slinear', 'quintic', and 'pchip' methods in
_HyperRectangleGrid.interpolate in addition to existing 'linear',
'nearest', and 'cubic' methods.
- Route all non-derivative interpolations (nu_x == nu_y == nu_z == 0)
to SciPy's RegularGridInterpolator, enabling vectorized evaluation
on multiple points at once for all methods, including 'cubic'.
- The custom CubicSpline-based derivative path is preserved and only
used when nu_x, nu_y, or nu_z > 0.
- Correctly apply np.exp() when use_log=True in the SciPy path.
- Update tests: fix error message assertion and relax atol from 1e-6
to 1e-5 to match SciPy cubic's numerical precision characteristics.1 parent 99910ed commit ee8aa4a
2 files changed
+19
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | | - | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | | - | |
163 | | - | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
168 | 178 | | |
169 | 179 | | |
170 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | | - | |
207 | | - | |
| 206 | + | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
0 commit comments