-
Notifications
You must be signed in to change notification settings - Fork 76
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
spectral extraction defaults: fix case where background exactly on edge #1633
Conversation
dec1422
to
2b9c304
Compare
Codecov ReportBase: 86.42% // Head: 86.42% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #1633 +/- ##
=======================================
Coverage 86.42% 86.42%
=======================================
Files 94 94
Lines 9457 9457
=======================================
Hits 8173 8173
Misses 1284 1284
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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 is elegant fix, so LGTM. Except when I use this with #1608 , specreduce gives back flux unit in DN incorrectly. How do I overwrite that in the plot label?
I think we should find the source of that and fix it rather than overwriting the plot label. But either way, I don't think that's directly related to the fix here. |
If plot label is out of scope, then I will approve once we figure out the change log capitalization. |
* should default to one-sided if the default background separation would fall exactly on the edge of the image
2b9c304
to
a4c7073
Compare
We temporarily force plotting in pixel space in specviz2d because of the axes linking issues between wavelength and pixel. Once that is resolved, it is very easy to revert to plotting in wavelength/frequency. |
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!
Description
This pull request fixes the default spectral extraction parameters in specviz2d when the default background separation would otherwise fall directly on the edge of the image and cause the extraction to fail.
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.CHANGES.rst
?