10000 Backport 7358, BUG: constant padding expected wrong type in constant_values by charris · Pull Request #7558 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Backport 7358, BUG: constant padding expected wrong type in constant_values #7558

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

Merged
merged 2 commits into from
Apr 18, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
BUG: constant padding expected wrong type in constant_values
Constant padding on 4 sides of a 2d array expected a numpy ndarray, and not a ndarray like (tuple, list, ...)
Detailed description is in the issue  #7353
  • Loading branch information
chiffa authored and charris committed Apr 18, 2016
commit 32f8393b8c4b6cadadab10f785eceb406e8cef90
2 changes: 1 addition & 1 deletion numpy/lib/arraypad.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ def _normalize_shape(ndarray, shape, cast_to_int=True):
arr = arr.repeat(2, axis=1)
elif arr.shape[0] == ndims:
# Input correctly formatted, pass it on as `arr`
arr = shape
pass
else:
fmt = "Unable to create correctly shaped tuple from %s"
raise ValueError(fmt % (shape,))
Expand Down
0