diff --git a/CHANGES.rst b/CHANGES.rst index ff8324ba9..f10d947e3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,7 @@ ramp_fitting - Refactor Casertano, et.al, 2022 uneven ramp fitting and incorporate the matching jump detection algorithm into it. [#215] - Fix memory issue with uneven ramp fitting [#226] +- Fix some bugs in the jump detection algorithm [#227] Changes to API -------------- diff --git a/tests/test_jump_cas22.py b/tests/test_jump_cas22.py index 352d0bc76..ff849e333 100644 --- a/tests/test_jump_cas22.py +++ b/tests/test_jump_cas22.py @@ -575,7 +575,9 @@ def test_find_jumps(jump_data): # The two resultants excluded should be adjacent jump_correct = [] for jump in fit['jumps']: - jump_correct.append(jump == resultant_index or jump == resultant_index - 1 or jump == resultant_index + 1) + jump_correct.append(jump == resultant_index or + jump == resultant_index - 1 or + jump == resultant_index + 1) if not all(jump_correct): incorrect_other += 1 continue