-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ci failures and update latest/min versions #779
Conversation
@obi-wan76 @mperrin @larrybradley - Attaching the output from the failed comparison that checks a saved file with what was originally written. |
@obi-wan76 @mperrin - When saving model, to maintain xygrid sorting, now writing using |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #779 +/- ##
========================================
Coverage 54.52% 54.52%
========================================
Files 16 16
Lines 6560 6560
========================================
Hits 3577 3577
Misses 2983 2983 ☔ View full report in Codecov by Sentry. |
I think what we really need is @larrybradley to advise on interface issues with the newest version of photutils and the save/read functionality there. I'm not familiar enough in detail with the changes made in x,y order to know if this would cause any problems or not. One small piece of advice though, is that if we're making changes in how the PSF grid files are saved, let's make sure that there's a version number keyword that's being saved into the files as metadata, so that when reading in any file it's 100% unambiguous which version of the software it was created with (and thus which x,y ordering). The science-related issue I can imagine would be reading in a saved file created with some software version X into code running version Y, and being confused about data ordering in such a way that the data in the PSF grid for field-dependence gets mixed up. Want to make sure that doesn't happen accidentally for any users! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested this PR and verified that
- If you create a psf grid, and save it to disk then read back in, then the computed grid and read-from-disk-file grid match precisely (as expected)
- The PSF in a given grid position matches the expected PSF for that detector location as given by the grid_xypos metadata. (I.e. the reordering of grid data in Fix GriddedPSFModel plot_grid astropy/photutils#1661 did not introduce any accidental surprises when making or reading grids using WebbPSF).
Tested with photutils 1.10.0.
LGTM.
@mperrin , thank you for the review. Would you still like me to add the version of webbpsf in the header information? |
I checked and the version of WebbPSF is already in the header information! |
@obi-wan76 would you also want to review this? I see @BradleySappington tagged both of us. Or one of us can go ahead and merge now. Your choice. I think it would be nice to ge this merged sooner rather than later so the CI is working again and can be used to test all the other PRs... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, specially after Marshall testing.
Updating versions and tests to handle new photutils version 1.10.0