Skip to content

Commit

Permalink
Update twopoint_difference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mwregan2 committed Feb 26, 2024
1 parent 3f383fc commit c6762f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stcal/jump/twopoint_difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def find_crs(
total_groups = nints * (ngrps - num_flagged_grps)
total_diffs = nints * (ngrps - 1 - num_flagged_grps)
total_usable_diffs = total_diffs - num_flagged_grps
if (ngrps < minimum_groups and only_use_ints and nints < minimum_sigclip_groups) or \
if ((ngrps < minimum_groups and only_use_ints and nints < minimum_sigclip_groups) or
(not only_use_ints and nints * ngrps < minimum_sigclip_groups and
total_groups < minimum_groups):
total_groups < minimum_groups)):
log.info("Jump Step was skipped because exposure has less than the minimum number of usable groups")
log.info("Data shape {}".format(str(dat.shape)))
dummy = np.zeros((dataa.shape[1] - 1, dataa.shape[2], dataa.shape[3]),
Expand Down

0 comments on commit c6762f6

Please sign in to comment.