Skip to content

Conversation

@pllim
Copy link
Contributor

@pllim pllim commented Dec 11, 2025

Resolves JP-4174

This PR addresses

Tasks

@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

❌ Patch coverage is 97.05882% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.88%. Comparing base (17e1705) to head (ce81942).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/stcal/jump/jump.py 95.45% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #456      +/-   ##
==========================================
- Coverage   89.89%   89.88%   -0.01%     
==========================================
  Files          65       65              
  Lines        9983     9977       -6     
==========================================
- Hits         8974     8968       -6     
  Misses       1009     1009              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pllim pllim added the bug Something isn't working label Dec 11, 2025
@pllim pllim marked this pull request as ready for review December 11, 2025 22:19
@pllim pllim requested a review from a team as a code owner December 11, 2025 22:20
@pllim
Copy link
Contributor Author

pllim commented Dec 11, 2025

RT runs are linked above

  • 38 failures in jwst touching NIRCam, NIRISS, and NIRSpec. How does one know if these failures are okay?
  • No failure in romancal

Copy link
Contributor Author

@pllim pllim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you can see, I also did some code clean-ups so it is easier on my eyes when I worked on the modules. For larger scale clean-up discussions, see spacetelescope/jwst#10081 .

I also removed some outdated "cv" or "cv2" wordings that should have been done as part of #138

I also added Brett Graham as co-authored on the commit that adds his test cases.


import numpy as np
import astropy.stats as stats
import numpy as np
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xref #455


log = logging.getLogger(__name__)

__all__ = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to the bug but doesn't hurt? xref spacetelescope/jwst#9646


# also apply to the after_jump thresholds
# XXX Maybe move this computation
# Ken M: Maybe move this computation
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"XXX" means nothing to me and I think it is Ken's signature comment, so changed to his name. If I am mistaken, please let me know.

assert np.all(gdq[0, 4, 12:22, 14:23]) == 0


def test_inside_ellipse5():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing def test_inside_ellipse5() and def test_inside_ellipes5() was really confusing for me. Also lots of code duplication. So I parametrized these tests.

@zacharyburnett
Copy link
Collaborator

total-ellipse-of-my-points lol

pllim and others added 6 commits December 12, 2025 16:30
in jump.py and test_jump.py before I make actual changes
tests because it fixes a naming bug and also to prep for the next step where I add the failing test case before real fix
Co-authored-by: Brett Graham <[email protected]>
@pllim pllim force-pushed the total-ellipse-of-my-points branch from 5d7e086 to 795daac Compare December 12, 2025 21:30
because its duplicate removed in another PR that got merged
and update tests
assert result
@pytest.mark.parametrize(
("ellipse", "point"),
[(((0, 0), (2, 4), -10), (1, 0.6)),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old algorithm wrongly assumed second element is semi axis but it is actually full length, so I updated (1, 2) to (2, 4) in the input test cases for second element.

@pllim
Copy link
Contributor Author

pllim commented Dec 16, 2025

I reran RT. jwst still has 38 failures that need vetting. romancal has no failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working jump testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants