diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-01-23 09:54:41 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-01-23 09:55:26 +0100 |
commit | 79a38a85bb13a746effdb13bba649c5a6e1c2465 (patch) | |
tree | 4c6cbba5f234e796f14e4b1c20058a258f502e98 | |
parent | 5d76f62924b674a65cbe4483670f2b3ddfa0c86a (diff) |
doublenull: null_coordinates(): do not extrapolate
-rw-r--r-- | doublenull.py | 4 | ||||
-rw-r--r-- | test/test_doublenull.npz | bin | 103064 -> 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 Binary files differindex 82aa642..db5fc85 100644 --- a/test/test_doublenull.npz +++ b/test/test_doublenull.npz |