Skip to content
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 failing simulations with NIRISS raw darks #762

Merged
merged 6 commits into from
Feb 7, 2022

Conversation

bhilbert4
Copy link
Collaborator

This PR tweaks the code for reading in dark current files to fix an issue seen when using a raw NIRISS dark. The raw NIRISS darks in the reference file collection contain no zeroframe extension. This was causing zeroframe to be set to None. With this fix, as long as the dark current file uses a RAPID readout pattern, Mirage will grab the initial group of the dark file and use it as the zeroframe.

The larger problem that was being seen with these raw darks was that the metadata was not being read in properly. Updates to the way the metadata are read in have fixed the problem.

@bhilbert4 bhilbert4 self-assigned this Feb 1, 2022
@bhilbert4
Copy link
Collaborator Author

pysiaf 0.14.0 was giving errors when working with some of the new NIRCam apertures. So for now we pin it to 0.13.0.

@bhilbert4
Copy link
Collaborator Author

@hover2pi do you have a few minutes to look this over at some point?

Copy link
Collaborator

@hover2pi hover2pi left a comment

Choose a reason for hiding this comment

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

Cut and dry. I love it.

@bhilbert4 bhilbert4 merged commit 8616f6a into spacetelescope:master Feb 7, 2022
@bhilbert4 bhilbert4 deleted the niriss-dark-zeroframe branch February 7, 2022 16:17
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.

2 participants