From 28bff55770c78dde9f0df2ff19213bfe6ca1bf8a Mon Sep 17 00:00:00 2001 From: Mike Regan Date: Fri, 5 Jan 2024 12:33:09 -0500 Subject: [PATCH] Update jump.py --- src/stcal/jump/jump.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stcal/jump/jump.py b/src/stcal/jump/jump.py index 43bfa66e..66c72fa6 100644 --- a/src/stcal/jump/jump.py +++ b/src/stcal/jump/jump.py @@ -683,9 +683,9 @@ def extend_ellipses( diff_cube = out_gdq_cube - gdq_cube return out_gdq_cube, num_ellipses -def find_last_grp(grp, ngrps, num_grps_masked): - num_grps_masked += 1 - last_grp = min(grp + num_grps_masked, ngrps) +def find_last_grp(grp, ngrps, num_grps_masked_after): + num_grps_masked_after += 1 + last_grp = min(grp + num_grps_masked_after, ngrps) return last_grp def find_circles(dqplane, bitmask, min_area):