Skip to content

Commit

Permalink
fix jump detection tests (#6310)
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 authored Oct 13, 2021
1 parent 929fb36 commit b6155a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ jump

- Updated jump detection step to use common code moved to stcal [#6089]

- Fixed jump detection tests. [#6310]

lib
---

Expand Down
4 changes: 2 additions & 2 deletions jwst/jump/tests/test_detect_jumps.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ def test_nirspec_saturated_pix(setup_inputs):
# Check the results. There should not be any pixels with DQ values of 6, which
# is saturated (2) plus jump (4). All the DQ's should be either just 2 or just 4.
assert_array_equal(out_model.groupdq[0, :, 1, 1], [0, 4, 4, 4, 0, 2, 2])
assert_array_equal(out_model.groupdq[0, :, 2, 2], [0, 4, 2, 2, 2, 2, 2])
assert_array_equal(out_model.groupdq[0, :, 2, 2], [0, 0, 2, 2, 2, 2, 2]) # cannot find jump with just one grp
assert_array_equal(out_model.groupdq[0, :, 3, 3], [0, 4, 4, 0, 0, 4, 2])
assert_array_equal(out_model.groupdq[0, :, 4, 4], [0, 4, 2, 2, 2, 2, 2])
assert_array_equal(out_model.groupdq[0, :, 4, 4], [0, 0, 2, 2, 2, 2, 2]) # cannot find jump with just one grp


@pytest.mark.skip(reason='multiprocessing temporarily disabled')
Expand Down

0 comments on commit b6155a6

Please sign in to comment.