Skip to content

Commit 85075ea

Browse files
committed
Wider tolerance for skybrightness: intel vs. m2
1 parent a5dc99c commit 85075ea

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/skybrightness/test_skymodel.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_setups(self):
147147
dummy, spec1 = sm1.return_wave_spec()
148148
dummy, spec2 = sm2.return_wave_spec()
149149

150-
np.testing.assert_array_equal(spec1, spec2)
150+
np.testing.assert_allclose(spec1, spec2, rtol=1e-13)
151151

152152
# Check that the degrees kwarg works
153153
sm2.set_params(
@@ -192,7 +192,8 @@ def test_setups(self):
192192

193193
def test_mags(self):
194194
"""
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
196197
"""
197198

198199
through_path = os.path.join(get_data_dir(), "throughputs", "baseline")
@@ -217,8 +218,10 @@ def test_mags(self):
217218
mag2 = sm2.return_mags()
218219

219220
# 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
222225
for i, filtername in enumerate(filters):
223226
np.testing.assert_allclose(mags1[filtername], mag2[filtername], rtol=5e-3)
224227

0 commit comments

Comments
 (0)