Skip to content

Commit

Permalink
Update test_jump.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mwregan2 committed Dec 28, 2023
1 parent 1d8105b commit 541ceed
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
point_inside_ellipse,
find_last_grp
)
from astropy.io import fits

DQFLAGS = {"JUMP_DET": 4, "SATURATED": 2, "DO_NOT_USE": 1, "GOOD": 0, "NO_GAIN_VALUE": 8}

Expand All @@ -31,19 +30,6 @@ def _cube(ngroups, readnoise=10):

return _cube

def test_slowmode():
hdul = fits.open("miri_1264_00_jump.fits")
gain = fits.getdata("jwst_miri_gain_0026.fits")
data = hdul["sci"].data * gain
gdq = hdul["groupdq"].data
readnoise = fits.getdata("jwst_miri_readnoise_0050.fits") * gain
gdq, num_showers = find_faint_extended(data, gdq, readnoise, 1, 100,
snr_threshold=1.3,
min_shower_area=90, inner=1,
outer=2.6, sat_flag=2, jump_flag=4,
ellipse_expand=1.1, num_grps_masked=3)
fits.writeto("outgdq.fits", gdq, overwrite=True)
print("total number of showers", num_showers)

def test_find_simple_ellipse():
plane = np.zeros(shape=(5, 5), dtype=np.uint8)
Expand Down

0 comments on commit 541ceed

Please sign in to comment.