Skip to content

Commit 98d6e8d

Browse files
committed
Don't do diffs for AtocaSpectra
1 parent 8ee8723 commit 98d6e8d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jwst/regtest/test_niriss_soss.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,13 @@ 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-
diff = FITSDiff(rtdata.output, rtdata.truth, **fitsdiff_default_kwargs)
132-
assert diff.identical, diff.report()
131+
if suffix == "AtocaSpectra":
132+
# Supplemental output from atoca may have system dependent diffs
133+
# that can't be reasonably compared. Just check for existence.
134+
assert pathlib.Path(rtdata.output).exists()
135+
else:
136+
diff = FITSDiff(rtdata.output, rtdata.truth, **fitsdiff_default_kwargs)
137+
assert diff.identical, diff.report()
133138

134139

135140
@pytest.fixture(scope='module')

0 commit comments

Comments
 (0)