Skip to content

Commit 2daa80c

Browse files
committed
Allow for numerical diffs in superposition of Gaussian line flux with NumPy 2.
1 parent 9dfc945 commit 2daa80c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

geminidr/core/tests/test_spect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ def test_get_sky_spectrum(path_to_inputs, path_to_refs):
664664
ref_refplot_spec_f2 = np.loadtxt(
665665
os.path.join(path_to_refs, "S20180114S0104_refplot_spec.dat"))
666666

667-
np.testing.assert_allclose(ref_refplot_spec_f2, refplot_data_f2["refplot_spec"], atol=1e-3)
667+
np.testing.assert_allclose(ref_refplot_spec_f2[:, 0], refplot_data_f2["refplot_spec"][:, 0], atol=1e-3)
668+
np.testing.assert_allclose(ref_refplot_spec_f2[:, 1], refplot_data_f2["refplot_spec"][:, 1], atol=0.25) # max numerical diff in flux with numpy 2
668669

669670

670671
def test_resample_spec_table():

0 commit comments

Comments
 (0)