Skip to content

Commit

Permalink
Responding to PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Aug 17, 2022
1 parent 80d31eb commit abf8ce9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions jwst/jump/jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def run_detect_jumps(input_model, gain_model, readnoise_model,
max_cores, max_jump_to_flag_neighbors,
min_jump_to_flag_neighbors, flag_4_neighbors,
after_jump_flag_dn1=0.0,
after_jump_flag_time1=0,
after_jump_flag_time1=0.0,
after_jump_flag_dn2=0.0,
after_jump_flag_time2=0):
after_jump_flag_time2=0.0):

# Runs `detect_jumps` in stcal

Expand All @@ -27,8 +27,8 @@ def run_detect_jumps(input_model, gain_model, readnoise_model,
err = input_model.err
output_model = input_model.copy()

# determine the number of groups that coorespond to the after_jump times
# needed as the group time is not passed to detect_jumps
# determine the number of groups that correspond to the after_jump times
# needed because the group time is not passed to detect_jumps
gtime = input_model.meta.exposure.group_time
after_jump_flag_n1 = int(after_jump_flag_time1 // gtime)
after_jump_flag_n2 = int(after_jump_flag_time2 // gtime)
Expand All @@ -54,10 +54,10 @@ def run_detect_jumps(input_model, gain_model, readnoise_model,
max_jump_to_flag_neighbors,
min_jump_to_flag_neighbors,
flag_4_neighbors, dqflags.pixel,
after_jump_flag_dn1=after_jump_flag_dn1,
after_jump_flag_n1=after_jump_flag_n1,
after_jump_flag_dn2=after_jump_flag_dn2,
after_jump_flag_n2=after_jump_flag_n2)
after_jump_flag_dn1,
after_jump_flag_n1,
after_jump_flag_dn2,
after_jump_flag_n2)

# Update the DQ arrays of the output model with the jump detection results
output_model.groupdq = new_gdq
Expand Down
8 changes: 4 additions & 4 deletions jwst/jump/jump_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def process(self, input):
rej_thresh, three_grp_rej_thresh, four_grp_rej_thresh, max_cores,
max_jump_to_flag_neighbors, min_jump_to_flag_neighbors,
flag_4_neighbors,
after_jump_flag_dn1=after_jump_flag_dn1,
after_jump_flag_time1=after_jump_flag_time1,
after_jump_flag_dn2=after_jump_flag_dn2,
after_jump_flag_time2=after_jump_flag_time2)
after_jump_flag_dn1,
after_jump_flag_time1,
after_jump_flag_dn2,
after_jump_flag_time2)
gain_model.close()
readnoise_model.close()
tstop = time.time()
Expand Down

0 comments on commit abf8ce9

Please sign in to comment.