Skip to content

Commit cba313e

Browse files
committed
Set VAR_RNOISE to a finite, non-zero value.
1 parent 7b44d42 commit cba313e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jwst/resample/tests/test_resample_step.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,7 @@ def test_resample_undefined_variance(nircam_rate, shape):
991991
def test_custom_wcs_resample_imaging(nircam_rate, ratio, rotation, crpix, crval, shape):
992992
im = AssignWcsStep.call(nircam_rate, sip_approx=False)
993993
im.data += 5
994+
im.var_rnoise += 0.01
994995

995996
result = ResampleStep.call(
996997
im, output_shape=shape, crpix=crpix, crval=crval, rotation=rotation, pixel_scale_ratio=ratio
@@ -1027,6 +1028,7 @@ def test_custom_refwcs_resample_imaging(nircam_rate, output_shape2, match, tmp_p
10271028
im = AssignWcsStep.call(nircam_rate, sip_approx=False)
10281029
rng = np.random.default_rng(seed=77)
10291030
im.data[:, :] = rng.random(im.data.shape)
1031+
im.var_rnoise += 0.01
10301032

10311033
if output_shape2 is None:
10321034
crpix = None
@@ -1094,6 +1096,7 @@ def test_custom_refwcs_pixel_shape_imaging(nircam_rate, tmp_path, weight_type):
10941096
im.data[5:-5, 5:-5] = rng.random(tuple(i - 10 for i in im.data.shape))
10951097
im.dq[:, :] = 1
10961098
im.dq[5:-5, 5:-5] = 0
1099+
im.var_rnoise += 0.01
10971100

10981101
data0 = deepcopy(im.data)
10991102

0 commit comments

Comments
 (0)