-
Notifications
You must be signed in to change notification settings - Fork 46
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
ssx_integrate: catch ValueError #2349
Conversation
A ValueError occasionally arise from rstbx parameter_reduction on setting the orientation
Codecov Report
@@ Coverage Diff @@
## main #2349 +/- ##
==========================================
- Coverage 83.10% 83.07% -0.04%
==========================================
Files 593 593
Lines 68542 68548 +6
Branches 9213 9213
==========================================
- Hits 56965 56944 -21
- Misses 9445 9474 +29
+ Partials 2132 2130 -2 |
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.
Do you know at which precise point the ValueError can be raised? I think my preference would be to catch at the precise call and reraise as a RuntimeError, to avoid hiding any other potential failures/bugs that may cause ValueErrors.
Running:
gives the following traceback:
|
Verified the above fix on the data in question |
A
ValueError
occasionally arise from rstbx parameter_reduction on setting the orientation