Skip to content

Commit f23fb2b

Browse files
committed
tangent plane tests
1 parent 38771cc commit f23fb2b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/sorcha/test_PPFootprintFilter.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ def test_ison():
7171

7272

7373
def test_areas():
74-
from sorcha.modules.PPFootprintFilter import radec2focalplane
74+
from sorcha.modules.PPFootprintFilter import radec_to_tangent_plane
7575

7676
detector = dummy_detector()
7777
pointsin = np.array([np.linspace(0.0, 0.01, 10), np.linspace(0.0, 0.01, 10)])
7878
pointsout = np.array([np.linspace(0.0, 0.01, 10), np.linspace(0.0, 0.01, 10)]) + 1
7979

8080
for p in pointsin.T:
81-
pi = np.array(radec2focalplane(p[0], p[1], 0, 0))
81+
pi = np.array(radec_to_tangent_plane(p[0], p[1], 0, 0))
8282
assert (
8383
np.abs(detector.segmentedArea(pi) - detector.trueArea()) < 1e-12
8484
) # these are stricter tolerances than currently demanded in current use
8585
for p in pointsout.T:
86-
pi = np.array(radec2focalplane(p[0], p[1], 0, 0))
86+
pi = np.array(radec_to_tangent_plane(p[0], p[1], 0, 0))
8787
assert np.abs(detector.segmentedArea(pi) - detector.trueArea()) > 1e-12
8888

8989

@@ -153,10 +153,10 @@ def test_plots():
153153
footprintf.plot()
154154

155155

156-
def test_radec2focalplane():
157-
from sorcha.modules.PPFootprintFilter import radec2focalplane
156+
def test_radec_to_tangent_plane():
157+
from sorcha.modules.PPFootprintFilter import radec_to_tangent_plane
158158

159-
out = radec2focalplane(1.0, 1.0, 0.0, 0.0)
159+
out = radec_to_tangent_plane(1.0, 1.0, 0.0, 0.0)
160160
out_expected = (1.5574077, 2.8824746)
161161

162162
assert len(out) == 2

0 commit comments

Comments
 (0)