diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-02-23 20:37:16 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-06-28 15:52:38 +0200 |
commit | 9c1cc48ff9fbfd789b5031c772a40b5bb413f9d8 (patch) | |
tree | 4df1b507f7a338cbfe7408664f4cff6df9150a42 /test | |
parent | 0d4fd526bcf810b9a82af3857dede65c21d2ede6 (diff) |
doublenull: shorten names
Breaks compatibility.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_doublenull.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_doublenull.py b/test/test_doublenull.py index e50003e..a61af33 100644 --- a/test/test_doublenull.py +++ b/test/test_doublenull.py @@ -15,9 +15,9 @@ class TestDoubleNull(TestCase): self.data = np.load(datafile) def test_null_curves(self): - rays = doublenull.calc_null_curves(self.data['t'], self.data['x'], - self.data['gxx'], np.zeros_like(self.data['gxx']), - -(self.data['alpha'] ** 2)) + rays = doublenull.null_curves(self.data['t'], self.data['x'], + self.data['gxx'], np.zeros_like(self.data['gxx']), + -(self.data['alpha'] ** 2)) assert_allclose(rays[0], self.data['ray_times'], 1e-12) assert_allclose(rays[1], self.data['rays_pos'], 1e-12) @@ -29,8 +29,8 @@ class TestDoubleNull(TestCase): gxx = self.data['gxx'] uv = 0.5 * array_utils.array_reflect(invars.dist_proper(x[idx:], gxx[0, idx:]), -1) - coords = doublenull.calc_null_coordinates(self.data['t'], x, uv, uv, - gxx, np.zeros_like(gxx), - -(self.data['alpha'] ** 2)) + coords = doublenull.null_coordinates(self.data['t'], x, uv, uv, + gxx, np.zeros_like(gxx), + -(self.data['alpha'] ** 2)) assert_allclose(coords[0], self.data['uxt'], 1e-12) assert_allclose(coords[1], self.data['vxt'], 1e-12) |