Skip to content

Commit

Permalink
JP-2928: Update NIRCam image moving target regression test data (#8865)
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke authored Oct 9, 2024
2 parents 67fea5d + e18462d commit 96b16c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jwst/regtest/test_nircam_mtimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
@pytest.mark.parametrize("in_memory", [True, False])
def test_nircam_image_moving_target_i2d(rtdata, fitsdiff_default_kwargs, in_memory):
"""Test resampled i2d of moving target exposures for NIRCam imaging"""
rtdata.get_asn("nircam/image/mt_asn.json")
rtdata.output = "mt_assoc_i2d.fits"
rtdata.get_asn("nircam/image/jw01252-o005_20240905t222322_image3_00001_asn.json")
rtdata.output = "jw01252-o005_t003_nircam_clear-f277w_i2d.fits"
args = ["calwebb_image3", rtdata.input, "--in_memory=" + str(in_memory)]
Step.from_cmdline(args)
rtdata.get_truth("truth/test_nircam_mtimage/mt_assoc_i2d.fits")
rtdata.get_truth("truth/test_nircam_mtimage/jw01252-o005_t003_nircam_clear-f277w_i2d.fits")

fitsdiff_default_kwargs["atol"] = 1e-5
fitsdiff_default_kwargs["rtol"] = 1e-4
fitsdiff_default_kwargs["atol"] = 2e-4
diff = FITSDiff(rtdata.output, rtdata.truth, **fitsdiff_default_kwargs)
assert diff.identical, diff.report()

Expand Down

0 comments on commit 96b16c1

Please sign in to comment.