-
Notifications
You must be signed in to change notification settings - Fork 105
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
Blaze function fix #1872
Blaze function fix #1872
Conversation
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.
All good from me 👍 thanks for the fix!!
One point to note... is there something about archival pixelflats that prevents them from being used (presumably, the archival pixelflats are just the sensitivity deviations about 1)? Do we just need to recreate them with the latest version of the code, or do we need to find an alternative way of storing the archival pixelflats so that they can still be used for extracting the Flatfield spectrum?
# flat image is available also when an archival pixel flat is used. | ||
flat_raw = flatimages.pixelflat_raw if flatimages.pixelflat_raw is not None else flatimages.illumflat_raw | ||
if flat_raw is not None and flatimages.pixelflat_norm is not None: | ||
# TODO: Can we just use flat_raw if flatimages.pixelflat_norm is None? |
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 think we can, but perhaps add a warning that the raw data will be used?
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.
Thanks for your input. I'll leave it as a TODO for now.
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.
Thanks @rcooke-ast. |
I'll run the tests for completeness. |
Tests pass. See below Summary.
|
Merging. |
This is a small fix to the code that extracts the 1D flat spectrum. Currently, if an archival pixelflat file is used, the
pixelflat_model
image does not exists and the 1D flat spectrum is not extracted. These changes fix this.