@@ -71,19 +71,19 @@ def test_ison():
71
71
72
72
73
73
def test_areas ():
74
- from sorcha .modules .PPFootprintFilter import radec2focalplane
74
+ from sorcha .modules .PPFootprintFilter import radec_to_tangent_plane
75
75
76
76
detector = dummy_detector ()
77
77
pointsin = np .array ([np .linspace (0.0 , 0.01 , 10 ), np .linspace (0.0 , 0.01 , 10 )])
78
78
pointsout = np .array ([np .linspace (0.0 , 0.01 , 10 ), np .linspace (0.0 , 0.01 , 10 )]) + 1
79
79
80
80
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 ))
82
82
assert (
83
83
np .abs (detector .segmentedArea (pi ) - detector .trueArea ()) < 1e-12
84
84
) # these are stricter tolerances than currently demanded in current use
85
85
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 ))
87
87
assert np .abs (detector .segmentedArea (pi ) - detector .trueArea ()) > 1e-12
88
88
89
89
@@ -153,10 +153,10 @@ def test_plots():
153
153
footprintf .plot ()
154
154
155
155
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
158
158
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 )
160
160
out_expected = (1.5574077 , 2.8824746 )
161
161
162
162
assert len (out ) == 2
0 commit comments