@@ -147,7 +147,7 @@ def test_setups(self):
147
147
dummy , spec1 = sm1 .return_wave_spec ()
148
148
dummy , spec2 = sm2 .return_wave_spec ()
149
149
150
- np .testing .assert_array_equal (spec1 , spec2 )
150
+ np .testing .assert_allclose (spec1 , spec2 , rtol = 1e-13 )
151
151
152
152
# Check that the degrees kwarg works
153
153
sm2 .set_params (
@@ -192,7 +192,8 @@ def test_setups(self):
192
192
193
193
def test_mags (self ):
194
194
"""
195
- Test that the interpolated mags are similar to mags computed from interpolated spectra
195
+ Test that the interpolated mags are similar to mags computed
196
+ from interpolated spectra
196
197
"""
197
198
198
199
through_path = os .path .join (get_data_dir (), "throughputs" , "baseline" )
@@ -217,8 +218,10 @@ def test_mags(self):
217
218
mag2 = sm2 .return_mags ()
218
219
219
220
# Let's set the tolerance for matching the throughputs to be 0.001
220
- # This allows for small changes in the filter throughputs without requiring recomputation of
221
- # sims_skybrighntess_pre, while still requiring a reasonable match against the measured sky
221
+ # This allows for small changes in the filter throughputs
222
+ # without requiring recomputation of
223
+ # sims_skybrighntess_pre, while still requiring a
224
+ # reasonable match against the measured sky
222
225
for i , filtername in enumerate (filters ):
223
226
np .testing .assert_allclose (mags1 [filtername ], mag2 [filtername ], rtol = 5e-3 )
224
227
0 commit comments