Skip to content

Commit f5a6120

Browse files
committed
Increase tolerance for atoca extras
1 parent 8ee8723 commit f5a6120

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jwst/regtest/test_niriss_soss.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ def test_niriss_soss_extras(rtdata_module, run_atoca_extras, fitsdiff_default_kw
128128

129129
rtdata.get_truth(f"truth/test_niriss_soss_stages/{output}")
130130

131+
if suffix == "AtocaSpectra":
132+
# Supplemental output from atoca may have system dependent diffs.
133+
# Set the tolerance higher for the numpy 2.2 -> 2.3 transition.
134+
fitsdiff_default_kwargs["rtol"] = 0.01
135+
fitsdiff_default_kwargs["atol"] = 0.1
136+
131137
diff = FITSDiff(rtdata.output, rtdata.truth, **fitsdiff_default_kwargs)
132138
assert diff.identical, diff.report()
133139

0 commit comments

Comments
 (0)