Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@penaguerrero
Copy link
Contributor

@penaguerrero penaguerrero commented Jun 20, 2025

Resolves JP-4041

Closes #9572

This PR addresses bugs reported in issue 9572.

Tasks

  • If you have a specific reviewer in mind, tag them.
  • add a build milestone, i.e. Build 12.0 (use the latest build if not sure)
  • Does this PR change user-facing code / API? (if not, label with no-changelog-entry-needed)
    • write news fragment(s) in changes/: echo "changed something" > changes/<PR#>.<changetype>.rst (see changelog readme for instructions)
    • update or add relevant tests
    • update relevant docstrings and / or docs/ page
    • start a regression test and include a link to the running job (click here for instructions)
      • Do truth files need to be updated ("okified")?
        • after the reviewer has approved these changes, run okify_regtests to update the truth files
  • if a JIRA ticket exists, make sure it is resolved properly

@penaguerrero
Copy link
Contributor Author

@melanieclarke melanieclarke marked this pull request as draft June 20, 2025 17:37
@melanieclarke
Copy link
Collaborator

I'm going to leave this at draft for now - I'd like to keep the FITSDiff workaround for the build transition.

@codecov
Copy link

codecov bot commented Jun 20, 2025

Codecov Report

❌ Patch coverage is 86.18785% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.37%. Comparing base (689430b) to head (d447d38).
⚠️ Report is 349 commits behind head on main.

Files with missing lines Patch % Lines
jwst/regtest/st_fitsdiff.py 87.64% 22 Missing ⚠️
jwst/scripts/stfitsdiff.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9575      +/-   ##
==========================================
- Coverage   80.37%   80.37%   -0.01%     
==========================================
  Files         367      367              
  Lines       37259    37260       +1     
==========================================
  Hits        29946    29946              
- Misses       7313     7314       +1     

☔ 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.

Copy link
Collaborator

@melanieclarke melanieclarke left a comment

Choose a reason for hiding this comment

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

It looks like you have addressed only one of the two reported bugs so far. The changes here fix the crash for all-NaN images but differences in the number of NaNs in tables is still uncaught.

Test data is jw01345066001_05101_00003_nrs1_x1d.fits and jw01345066001_05101_00003_nrs1_x1d_bad.fits. I set the whole wavelength array to NaN in the "bad" file -- stfitsdiff currently reports no differences.

@penaguerrero penaguerrero marked this pull request as ready for review June 24, 2025 19:34
@penaguerrero penaguerrero requested a review from a team as a code owner June 24, 2025 19:34
@melanieclarke melanieclarke added this to the Build 12.1 milestone Jul 7, 2025
Copy link
Collaborator

@melanieclarke melanieclarke left a comment

Choose a reason for hiding this comment

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

The test suite is looking good, but I think we could still get a few more things covered, since we have some time to work on this. In particular, as Robert mentioned this morning, it looks like there are a few branches not covered in the table diff -- can you see if you can catch those?

Copy link
Collaborator

@melanieclarke melanieclarke left a comment

Choose a reason for hiding this comment

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

A few more test-related comments...

Copy link
Collaborator

@melanieclarke melanieclarke left a comment

Choose a reason for hiding this comment

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

Okay, I think this is a good time to go ahead and get this merged, then continue monitoring and testing. Can you please run regression tests and link them here?

@penaguerrero
Copy link
Contributor Author

Copy link
Collaborator

@melanieclarke melanieclarke left a comment

Choose a reason for hiding this comment

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

Tests are passing. We'll merge these bug fixes + new tests now, and continue monitoring and testing before re-enabling stfitsdiff in the regtests.

Thanks for all the hard work so far, Maria!

@melanieclarke melanieclarke enabled auto-merge July 18, 2025 16:39
@melanieclarke melanieclarke merged commit 3b7ddf2 into spacetelescope:main Jul 18, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stfitsdiff fails to report differences in the number of NaN values

4 participants