-
Notifications
You must be signed in to change notification settings - Fork 180
JP-4075: Raise error for no slits selected #9794
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
Conversation
45d7882 to
8e2f6c8
Compare
|
Regression tests: All passing. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9794 +/- ##
=======================================
Coverage 83.38% 83.38%
=======================================
Files 366 366
Lines 37770 37768 -2
=======================================
+ Hits 31493 31494 +1
+ Misses 6277 6274 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8e2f6c8 to
343efbd
Compare
emolter
left a comment
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.
It looks like this PR changes the behavior of select_slits() when both slit_names and source_ids are None. On main it appears that this would cause all slits to be selected. But I see here that this now raises a NoDataOnDetectorError when both are None (this case has been added to the tests as well). What am I missing here?
emolter
left a comment
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.
Code looks good to me, I didn't run it myself though
stscirij
left a comment
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
tapastro
left a comment
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.
👍
Resolves JP-4075
Modify the behavior for the arguments to extract_2d that allow selecting specific NIRSpec slits or sources. If the arguments are specified, but none of the slits are valid, raise a NoDataOnDetectorError exception.
Also address a small bug that causes the step to fail if called on a filename instead of a datamodel.
Tasks
Build 12.0(use the latest build if not sure)no-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)docs/pageokify_regteststo update the truth files