Skip to content

Commit

Permalink
JP-3689: Fix logic operator (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
tapastro authored Sep 10, 2024
2 parents eb35e2a + 3b0f596 commit c23ac15
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 c23ac15

Please sign in to comment.