Skip to content

Commit

Permalink
Silence resample test warning by using non-zero data (spacetelescope#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavies-st authored and emolter committed Feb 8, 2024
1 parent 319dc73 commit ab8e1a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jwst/resample/tests/test_resample_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ def nircam_rate():

def test_nirspec_wcs_roundtrip(nirspec_rate):
im = AssignWcsStep.call(nirspec_rate)

# Since the ra_targ, and dec_targ are flux-weighted, we need non-zero
# flux values. Add random values.
rng = np.random.default_rng(1234)
im.data += rng.random(im.data.shape)

im = Extract2dStep.call(im)
for slit in im.slits:
_set_photom_kwd(slit)
Expand Down

0 comments on commit ab8e1a3

Please sign in to comment.