@@ -43,8 +43,8 @@ def test_celestial_2_cartesian():
4343 p = mist .celestial_2_cartesian (1. , 0. , 0. , output = 'spherical' )
4444 assert len (p ) == 2
4545 phi , theta , x , y , z = mist .celestial_2_cartesian (1. , 0. , 90. )
46- assert round ( phi , 6 ) == 0.
47- assert round ( theta , 6 ) == 0.
46+ assert phi == 0.
47+ assert theta == 0.
4848 assert round (x , 6 ) == 0.
4949 assert round (y , 6 ) == 0.
5050 assert round (z , 6 ) == 1.
@@ -53,8 +53,8 @@ def test_celestial_2_cartesian():
5353 assert round (y , 6 ) == 0.
5454 assert round (z , 6 ) == 1.
5555 phi , theta , x , y , z = mist .celestial_2_cartesian (1. , 0. , 0. )
56- assert round ( phi , 6 ) == 0.
57- assert round ( theta , 6 ) == round (np .pi / 2. , 6 )
56+ assert phi == 0.
57+ assert theta == round (np .pi / 2. , 6 )
5858 assert round (x , 6 ) == 1.
5959 assert round (y , 6 ) == 0.
6060 assert round (z , 6 ) == 0.
@@ -63,8 +63,8 @@ def test_celestial_2_cartesian():
6363 assert round (y , 6 ) == 0.
6464 assert round (z , 6 ) == 0.
6565 phi , theta , x , y , z = mist .celestial_2_cartesian (1. , 0. , 45. )
66- assert round ( phi , 6 ) == 0.
67- assert round ( theta , 6 ) == round (np .pi / 4. , 6 )
66+ assert phi == 0.
67+ assert theta == round (np .pi / 4. , 6 )
6868 assert round (x , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
6969 assert round (y , 6 ) == 0.
7070 assert round (z , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
@@ -73,8 +73,8 @@ def test_celestial_2_cartesian():
7373 assert round (y , 6 ) == 0.
7474 assert round (z , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
7575 phi , theta , x , y , z = mist .celestial_2_cartesian (1. , 0. , np .pi / 2. , units = 'radians' )
76- assert round ( phi , 6 ) == 0.
77- assert round ( theta , 6 ) == 0.
76+ assert phi == 0.
77+ assert theta == 0.
7878 assert round (x , 6 ) == 0.
7979 assert round (y , 6 ) == 0.
8080 assert round (z , 6 ) == 1.
@@ -83,8 +83,8 @@ def test_celestial_2_cartesian():
8383 assert round (y , 6 ) == 0.
8484 assert round (z , 6 ) == 1.
8585 phi , theta , x , y , z = mist .celestial_2_cartesian (1. , 0. , 0. , units = 'radians' )
86- assert round ( phi , 6 ) == 0.
87- assert round ( theta , 6 ) == round (np .pi / 2. , 6 )
86+ assert phi == 0.
87+ assert theta == round (np .pi / 2. , 6 )
8888 assert round (x , 6 ) == 1.
8989 assert round (y , 6 ) == 0.
9090 assert round (z , 6 ) == 0.
@@ -93,8 +93,8 @@ def test_celestial_2_cartesian():
9393 assert round (y , 6 ) == 0.
9494 assert round (z , 6 ) == 0.
9595 phi , theta , x , y , z = mist .celestial_2_cartesian (1. , 0. , np .pi / 4. , units = 'radians' )
96- assert round ( phi , 6 ) == 0.
97- assert round ( theta , 6 ) == round (np .pi / 4. , 6 )
96+ assert phi == 0.
97+ assert theta == round (np .pi / 4. , 6 )
9898 assert round (x , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
9999 assert round (y , 6 ) == 0.
100100 assert round (z , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
@@ -156,8 +156,8 @@ def test_celestial_2_unit_sphere():
156156 p = mist .celestial_2_unit_sphere (0. , 0. , output = 'cartesian' )
157157 assert len (p ) == 3
158158 phi , theta , x , y , z = mist .celestial_2_unit_sphere (0. , 90. )
159- assert round ( phi , 6 ) == 0.
160- assert round ( theta , 6 ) == 0.
159+ assert phi == 0.
160+ assert theta == 0.
161161 assert round (x , 6 ) == 0.
162162 assert round (y , 6 ) == 0.
163163 assert round (z , 6 ) == 1.
@@ -166,8 +166,8 @@ def test_celestial_2_unit_sphere():
166166 assert round (y , 6 ) == 0.
167167 assert round (z , 6 ) == 1.
168168 phi , theta , x , y , z = mist .celestial_2_unit_sphere (0. , 0. )
169- assert round ( phi , 6 ) == 0.
170- assert round ( theta , 6 ) == round (np .pi / 2. , 6 )
169+ assert phi == 0.
170+ assert theta == round (np .pi / 2. , 6 )
171171 assert round (x , 6 ) == 1.
172172 assert round (y , 6 ) == 0.
173173 assert round (z , 6 ) == 0.
@@ -176,8 +176,8 @@ def test_celestial_2_unit_sphere():
176176 assert round (y , 6 ) == 0.
177177 assert round (z , 6 ) == 0.
178178 phi , theta , x , y , z = mist .celestial_2_unit_sphere (0. , 45. )
179- assert round ( phi , 6 ) == 0.
180- assert round ( theta , 6 ) == round (np .pi / 4. , 6 )
179+ assert phi == 0.
180+ assert theta == round (np .pi / 4. , 6 )
181181 assert round (x , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
182182 assert round (y , 6 ) == 0.
183183 assert round (z , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
@@ -186,8 +186,8 @@ def test_celestial_2_unit_sphere():
186186 assert round (y , 6 ) == 0.
187187 assert round (z , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
188188 phi , theta , x , y , z = mist .celestial_2_unit_sphere (0. , np .pi / 2. , units = 'radians' )
189- assert round ( phi , 6 ) == 0.
190- assert round ( theta , 6 ) == 0.
189+ assert phi == 0.
190+ assert theta == 0.
191191 assert round (x , 6 ) == 0.
192192 assert round (y , 6 ) == 0.
193193 assert round (z , 6 ) == 1.
@@ -196,8 +196,8 @@ def test_celestial_2_unit_sphere():
196196 assert round (y , 6 ) == 0.
197197 assert round (z , 6 ) == 1.
198198 phi , theta , x , y , z = mist .celestial_2_unit_sphere (0. , 0. , units = 'radians' )
199- assert round ( phi , 6 ) == 0.
200- assert round ( theta , 6 ) == round (np .pi / 2. , 6 )
199+ assert phi == 0.
200+ assert theta == round (np .pi / 2. , 6 )
201201 assert round (x , 6 ) == 1.
202202 assert round (y , 6 ) == 0.
203203 assert round (z , 6 ) == 0.
@@ -206,8 +206,8 @@ def test_celestial_2_unit_sphere():
206206 assert round (y , 6 ) == 0.
207207 assert round (z , 6 ) == 0.
208208 phi , theta , x , y , z = mist .celestial_2_unit_sphere (0. , np .pi / 4. , units = 'radians' )
209- assert round ( phi , 6 ) == 0.
210- assert round ( theta , 6 ) == round (np .pi / 4. , 6 )
209+ assert phi == 0.
210+ assert theta == round (np .pi / 4. , 6 )
211211 assert round (x , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
212212 assert round (y , 6 ) == 0.
213213 assert round (z , 6 ) == round (np .sqrt (2. )/ 2. , 6 )
0 commit comments