Skip to content

Commit

Permalink
Update jump.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mwregan2 committed Jan 30, 2024
1 parent 38d617e commit e5c15e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/stcal/jump/jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ def detect_jumps(
minimum_sigclip_groups=minimum_sigclip_groups,
only_use_ints=only_use_ints,
)
# remove redundant bits in pixels that have jump flagged but were
# already flagged as do_not_use or saturated.
gdq[gdq == np.bitwise_or(dqflags['DO_NOT_USE'], dqflags['JUMP_DET'])] = \
dqflags['DO_NOT_USE']
gdq[gdq == np.bitwise_or(dqflags['SATURATED'], dqflags['JUMP_DET'])] = \
dqflags['SATURATED']
# This is the flag that controls the flagging of snowballs.
if expand_large_events:
total_snowballs = flag_large_events(
Expand Down

0 comments on commit e5c15e2

Please sign in to comment.