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 25, 2024
1 parent 30c41af commit f011e93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/stcal/jump/jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,13 @@ def detect_jumps(
# save the neighbors to be flagged that will be in the next slice
previous_row_above_gdq = row_above_gdq.copy()
k += 1
# 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 f011e93

Please sign in to comment.