Skip to content

Commit

Permalink
Merge branch 'main' into jp_3669
Browse files Browse the repository at this point in the history
  • Loading branch information
tapastro committed Sep 10, 2024
2 parents 2ee4a85 + c23ac15 commit d85f859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/285.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[jump] Fix a logical bug in the jump step for usage of > vs >= per JP-3689.
2 changes: 1 addition & 1 deletion src/stcal/jump/jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ def find_faint_extended(

first_diffs_masked = np.ma.masked_array(first_diffs, mask=np.isnan(first_diffs))
warnings.filterwarnings("ignore")
if nints > minimum_sigclip_groups:
if nints >= minimum_sigclip_groups:
mean, median, stddev = stats.sigma_clipped_stats(first_diffs_masked, sigma=5, axis=0)
else:
median_diffs = np.nanmedian(first_diffs_masked, axis=(0, 1))
Expand Down

0 comments on commit d85f859

Please sign in to comment.