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: lib: Simplify (and fix) pad's handling of the pad_width #8057

Merged
merged 1 commit into from
Sep 18, 2016

Conversation

WarrenWeckesser
Copy link
Member

Simplify the expansion of the pad_width argument by using broadcast_to().
This fixes the problem reported in gh-7808, where, for example,
pad_width=((1, 2),) resulted in an error.

Closes gh-7808.

Simplify the expansion of the pad_width argument by using `broadcast_to()`.
This fixes the problem reported in numpygh-7808, where, for example,
`pad_width=((1, 2),)` resulted in an error.

Closes numpygh-7808.
@charris charris added this to the 1.11.2 release milestone Sep 18, 2016
@charris
Copy link
Member

charris commented Sep 18, 2016

I'm going to rely on the tests for the correctness of this. Thanks @WarrenWeckesser .

@charris charris merged commit 1147490 into numpy:master Sep 18, 2016
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.

Specifying single before/after padding amount in numpy.pad raises ValueError
2 participants