Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BUG: Fix calling ufuncs with a positional output argument.#10560

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
charris merged 1 commit intonumpy:maintenance/1.14.xfromcharris:backport-10479
Feb 9, 2018

Conversation

@charris
Copy link
Member

@charrischarris commentedFeb 9, 2018
edited
Loading

Backport of#10479.

Currently, this causes the result to inherit the output's mask.

This bringsnp.add(a, b, out) in line withnp.add(a, b, out=out).
These previously differed becausegh-10459 causes them to call
array_wrap in different ways (with and without the output argument
in the context tuple, respectively).

Since the data in theout argument is never used by ufuncs, it seems
consistent that the mask should not be either.

Currently, this causes the result to inherit the output's mask.This brings `np.add(a, b, out)` in line with  `np.add(a, b, out=out)`.These previously differed becausenumpygh-10459 causes them to call__array_wrap__ in different ways (with and without the output argumentin the context tuple, respectively).Since the data in the `out` argument is never used by ufuncs, it seemsconsistent that the mask should not be either.
@charrischarris added 00 - Bug component: numpy.mamasked arrays 08 - BackportUsed to tag backport PRs labelsFeb 9, 2018
@charrischarris added this to the1.14.1 release milestoneFeb 9, 2018
@charrischarris merged commit36c9ebf intonumpy:maintenance/1.14.xFeb 9, 2018
@charrischarris deleted the backport-10479 branchSeptember 19, 2018 14:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

00 - Bug08 - BackportUsed to tag backport PRscomponent: numpy.mamasked arrays

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@charris@eric-wieser

[8]ページ先頭

©2009-2025 Movatter.jp