- Timestamp:
- Sep 10, 2013, 8:12:49 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/fit_interpolate/test_interpolate2d.py
r8967 r8969 250 250 xis = numpy.linspace(x[0], x[-1], 10) 251 251 etas = numpy.linspace(y[0], y[-1], 10) 252 252 253 xis[6:7] = numpy.nan 253 254 etas[3] = numpy.nan 254 255 points = axes2points(xis, etas) 255 256 256 257 vals = interpolate2d(x, y, A, points, mode='linear') 257 258 refs = linear_function(points[:, 0], points[:, 1]) 259 258 260 assert nanallclose(vals, refs, rtol=1e-12, atol=1e-12) 259 261 … … 279 281 etas = numpy.linspace(y[0], y[-1], 10) 280 282 points = axes2points(xis, etas) 283 281 284 282 285 vals = interpolate2d(x, y, A, points, mode='linear')
Note: See TracChangeset
for help on using the changeset viewer.