-
-
Notifications
You must be signed in to change notification settings - Fork 129
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 mixed unit spectral region extraction #1187
Conversation
This also gets rid of some more pointless |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1187 +/- ##
==========================================
+ Coverage 86.87% 86.89% +0.02%
==========================================
Files 63 63
Lines 4556 4564 +8
==========================================
+ Hits 3958 3966 +8
Misses 598 598 ☔ View full report in Codecov by Sentry. |
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
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.
LGTM FWIW FFTM. Thanks!
Remote test failures are unrelated, merging. |
The left and right index bounds were ending up reversed if the spectrum was in wavelength units and the region was in frequency units, or vice versa, leading to a zero-length extracted spectrum. I confirmed visually in Jdaviz that this now extracts the correct region in those cases, and will add a test shortly. [edit: test that fails on main added]