-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
1.10 regression: partition errors out on empty input #6530
Comments
3937a87 is the first bad commit
|
The error being returned is terribly misleading, but this should be easy to fix. What's happening is that Failure of the So, after this very long explanation, and unless I am missing something else, it would seem to me that the fix is simple to be civilized, and go to an "innocent unless proven guilty" approach, i.e. simply changing the line linked above to The exact same issue should be affecting Plus tests, of course... If no one beats me to it, I'll try to send a PR during this week. But anyone, please feel free to beat me to it! |
I haven't had time to go properly spelunking, but is there some deep reason On Tue, Oct 20, 2015 at 9:21 AM, Jaime notifications@github.com wrote:
|
The GIL is the main reason. |
Raising an exception from GIL-less code is pretty straightforward -- you write something like
|
@jaimefrio I would like to fix this issue. Can you assign it to me ? |
We don't really use the assignment feature in github, just posting to say
|
@njsmith Cool. I'll start working on it. :) |
BUG: Fix partition and argpartition error for empty input. Closes #6530
* 'master' of https://github.com/numpy/numpy: (384 commits) BUG: fix MANIFEST.in for removal of a file in numpygh-8047. DOC: Release notes for Numpy 1.10.2. MAINT: remove useless files with outdated info from repo root and doc/. MAINT: fix mistake in doc upload rule TST: attempt to make test_load_refcount deterministic BUG: Fix for numpy#6569, allowing build_ext --inplace TST: Added regression test empty percentile, in ref to numpy#6530 and numpy#6553 TST: Added tests for empty partition and argpartition BUG: revert view safety checks TST: Remove tests of view safety checks (see next commit) BUG: Revert some import * fixes in f2py. BUG: Fixed partition errors on empty input. Closes numpy#6530 DOC: import "numpy for matlab users" from the wiki DOC: reorganize user guide a bit + import "tentative numpy tutorial" from wiki DOC: remove placeholders and incompleteness warnings MAINT: minor update to "make upload" doc build command. BUG: error in broadcast_arrays with as_strided array BUG: fix inner() by copying if needed to enforce contiguity DOC: clarify usage of 'argparse' return value. BUG: Make median work for empty arrays (issue numpy#6462) ...
maintenance/1.9.x:
1.10.1:
Noticed this because it's breaking some tests in patsy.
The text was updated successfully, but these errors were encountered: