Skip to content
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

BUG: Array ufunc reduce out tuple #9111

Merged

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented May 12, 2017

Backport of #9106.

This ensures that the normal reduce, accumulate and reduceat methods can deal with getting out as a single-item tuple, which is needed to work with array_ufunc (see #9105). It builds on #9104; can be done together or in sequence.

note: I think I'm right that with my refcounting (not doing anything), but someone who understands this better please check...

Should update to match #9106 as that gets commits pushed.

By mistake, any arguments to ufunc.reduce, ufunc.accumulate,
and ufunc.reduceat that were None were removed, rather than just
removing the 'out' argument.  This is corrected here, with
tests added.
@eric-wieser eric-wieser added the 08 - Backport Used to tag backport PRs label May 12, 2017
@charris
Copy link
Member

charris commented May 12, 2017

Would it not be easier to wait until #9106 gets merged?

@charris
Copy link
Member

charris commented May 12, 2017

This just makes more work.

@eric-wieser
Copy link
Member Author

eric-wieser commented May 12, 2017

This just makes more work.

How so? This is the same branch targeted against a different head. If @mhvk pushed a commit to the other PR, it will appear here automatically, and presumably be tested as a backport too

@mhvk mhvk force-pushed the array_ufunc_reduce_out_tuple branch from 20837e5 to c47cb21 Compare May 12, 2017 17:26
@mhvk mhvk force-pushed the array_ufunc_reduce_out_tuple branch 3 times, most recently from 2020e50 to 0a34fff Compare May 12, 2017 19:36
@charris charris changed the title Backport of #9106 BUG: Array ufunc reduce out tuple May 13, 2017
@charris charris added this to the 1.13.0 release milestone May 13, 2017
@mhvk mhvk force-pushed the array_ufunc_reduce_out_tuple branch 4 times, most recently from 15ed128 to 9785011 Compare May 17, 2017 20:54
@mhvk mhvk force-pushed the array_ufunc_reduce_out_tuple branch from 9785011 to ca49f0b Compare May 18, 2017 01:13
@eric-wieser eric-wieser merged commit 9c52dbe into numpy:maintenance/1.13.x May 18, 2017
@mhvk mhvk deleted the array_ufunc_reduce_out_tuple branch August 31, 2017 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants