summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-23 09:54:41 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-23 09:55:26 +0100
commit79a38a85bb13a746effdb13bba649c5a6e1c2465 (patch)
tree4c6cbba5f234e796f14e4b1c20058a258f502e98
parent5d76f62924b674a65cbe4483670f2b3ddfa0c86a (diff)
doublenull: null_coordinates(): do not extrapolate
-rw-r--r--doublenull.py4
-rw-r--r--test/test_doublenull.npzbin103064 -> 103064 bytes
2 files changed, 2 insertions, 2 deletions
diff --git a/doublenull.py b/doublenull.py
index 6fe84ef..e3fe0d1 100644
--- a/doublenull.py
+++ b/doublenull.py
@@ -181,7 +181,7 @@ def null_coordinates(times, spatial_coords, u_rays, v_rays,
for i, t in enumerate(times):
Xu = X_of_ut[:, i]
Xv = X_of_vt[:, i]
- u_of_tx[i] = interp1d(Xu, u_rays, fill_value = 'extrapolate')(spatial_coords)
- v_of_tx[i] = interp1d(Xv, v_rays, fill_value = 'extrapolate')(spatial_coords)
+ u_of_tx[i] = interp1d(Xu, u_rays, bounds_error = False)(spatial_coords)
+ v_of_tx[i] = interp1d(Xv, v_rays, bounds_error = False)(spatial_coords)
return (u_of_tx, v_of_tx)
diff --git a/test/test_doublenull.npz b/test/test_doublenull.npz
index 82aa642..db5fc85 100644
--- a/test/test_doublenull.npz
+++ b/test/test_doublenull.npz
Binary files differ