-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
MAINT: fix skellam distribution tests #22971
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
[skip ci]
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 @dschmitz89! The test is skipped as xslow in line 1116, so it's not running in CI. Please remove 'skellam'
from the list and this will LGTM, but I hope @steppi or someone can take a quick look at the compiled code.
Oops! So it was indeed very slow. Let's see if tests pass otherwise, then we can add |
scipy/stats/tests/test_continuous.py
Outdated
@@ -1113,7 +1113,7 @@ def test_rv_generic(self, i, distdata): | |||
'johnsonsb', 'kappa4', 'ksone', 'kstwo', 'kstwobign', 'norminvgauss', | |||
'powerlognorm', 'powernorm', 'recipinvgauss', 'studentized_range', | |||
'vonmises_line', # continuous | |||
'betanbinom', 'zipf', 'logser', 'skellam'} # discrete | |||
'betanbinom', 'zipf', 'logser'} # discrete |
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.
'betanbinom', 'zipf', 'logser'} # discrete | |
'betanbinom', 'zipf', 'logser', 'skellam'} # discrete |
Great; everything passed except for the slow test. The suggestion #22971 (review) can be committed with |
[skip ci]
This reverts commit eb5527e. [skip ci]
* TST: add test case extreme input for ncx2 pdf * TST: remove skellam from makedistribution skip list * MAINT: catch errors in ncx2 pdf * TST: Remove skellam from slow list --------- Co-authored-by: Matt Haberland <mhaberla@calpoly.edu>
Reference issue
Closes #22956
What does this implement/fix?
This should help with the recent discrete distribution updates. I do not understand the context fully though. Locally, I still see failures for other distributions.
Long term, it would be better to have a unified wrapping mechanism for boost functions that handle C++ exceptions generally. Let's fight that battle another day though.