-
Notifications
You must be signed in to change notification settings - Fork 106
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
Hotfix: Platescale binning correction #1721
Conversation
In `pypeit.find_objects.MultiSlitFindObjects.get_platescale()`, the platescale is scaled by the binning -- but the code accidentally was using the *spectral* binning rather than the *spatial* binning. This value is used to compute the BOXCAR RADIUS in the `pypeit.core.findobj_skymask.objs_in_slit()` function, which is then saved in the `SpecObj` object. This commit corrects the binning scaling to use the SPATIAL binning. modified: pypeit/find_objects.py
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 think we should run tests, unless we're confident that this isn't going to cause any object detection issues in the dev-suite.
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## develop #1721 +/- ##
========================================
Coverage 41.03% 41.03%
========================================
Files 190 190
Lines 43724 43724
========================================
Hits 17942 17942
Misses 25782 25782
|
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.
Great catch @tbowers7!
Hi @tbowers7 . I got one dev-suite failure:
Here's the log entry:
I'm not sure what caused the error. Can you look into this? |
@kbwestfall : This is fixed in #1712. |
Okay, great! Will merge soon. |
In
pypeit.find_objects.MultiSlitFindObjects.get_platescale()
, the platescale is scaled by the binning -- but the code accidentally was using the spectral binning rather than the spatial binning. This value is used to compute the BOXCAR RADIUS in thepypeit.core.findobj_skymask.objs_in_slit()
function, which is then saved in theSpecObj
object.This PR corrects the binning scaling to use the SPATIAL binning.