-
Notifications
You must be signed in to change notification settings - Fork 62
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
combining issues 726 and 736 #768
Conversation
@obi-wan76 did you see that the tests are failing on this PR? Specifically the function |
@mperrin thanks, I'll take a look at it when I come back next week. |
@obi-wan76 I'm looking at this PR but don't see any additions to match_data? I just ran into a situation where I needed to improve that function to handle NIRCam bar coronagraph data keywords. I could add those lines of code to this PR, but I don't want to conflict with changes you may already have done? |
@mperrin I forgot to add the file to the push. It is showing now. It should handle coronagraph data keywords but please add any missing setup. Thanks! |
Thanks that change does what I needed :-) (there may be an edge case still TBD for some of the dual channel coronagraph cases, using the SW channel with the LWB mask and so forth; but for right now those masks are treated interchangeably so this can be dealt with later) |
I added one additional enhancement to this, relevant for NIRCam bar mask sims:The |
To handle dual-channel NIRCam coronagraphy data is tricky, since the FITS header APERNAME keyword cannot be relied upon to correctly give the aperture name used. (Known issue, discovered during commissioning of the dual channel operations mode, not yet prioritized to be addressed in PPS and DMS). Thankfully @JarronL already wrote code to work around this in Example:
|
I fixed a problem with the previous commit that the IPC effects were apply twice inside the gridded PSF path and also to apply IPC effects before the especial normalization inside gridded PSF. There is also a |
@Skyhawk172 can you take a look at this PR? I just fixed a problem with my previous commit. Thanks! |
Ran a few cases along with the test mentioned above and everything runs successfully and as expected. Looks good! |
@obi-wan76 good morning. I've been reminded that this PR was approved but hasn't been merged yet, I guess perhaps because the tests were failing? Do you have a plan for looking into this, or would you like me to? Do you know, does the fix you made to |
@mperrin the test that's failing is |
This PR also solves the problem from #806
|
Hello @obi-wan76, Thank you for updating !
Comment last updated at 2024-04-01 16:57:16 UTC |
@obi-wan76 I made a fix to the PR code so that the test in But there's still several test failures from |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #768 +/- ##
===========================================
- Coverage 60.55% 60.08% -0.47%
===========================================
Files 16 16
Lines 6652 6732 +80
===========================================
+ Hits 4028 4045 +17
- Misses 2624 2687 +63 ☔ View full report in Codecov by Sentry. |
cb410ce
to
7a18c67
Compare
@obi-wan76 I re-added the two commits that got lost in your rebase. And did a little bit of code cleanup (whitespace, etc) and one fairly minor revision to your distortion code: for the The tests all pass locally for me, but are failing on here still. This is pretty weird. |
Wait, no, I take that back: actually the test suite DOES fail for me locally, reproducing the error seen online. Hmm. Will investigate. |
… NIRCam coron bar mask
…al path inside the gridded library
…names. Fixes a test failure.
This PR has two components:
Note that you can always check if IPC effects are included in your simulation by inspecting the header.
I tested this PR by using match_data for both the simple webbpsf simulation and a gridded simulation. Sample code: