-
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
minor bug fix to IFU mode after #770 #851
Conversation
Hello @mperrin, Thank you for submitting the Pull Request !
If you have not done so, please lint your code in accordance with best practices. |
@obi-wan76 apologies for keeping making yet more PRs, but this one at least is a tiny quick bug fix... |
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.
Looks good to me, I did try it and it changed the mask to None.
Minor fix: When switching to NIRSpec IFU mode, don't leave the image_mask at a slit or MSA mask (which is impossible to see with the IFU).
Specifically the default
image_mask
For NIRSpec is 'MSA all open', and settingnrs.mode = 'IFU'
would leavenrs.image_mask == 'MSA all open'
which makes no sense. This PR fixes that.It also deletes some very-very-old and obsolete warning checks about filter names starting with IFU and saying the IFU modes are not yet implemented; this is way out of date and no longer needed (and these lines of code were never getting executed anyway).