8000 bug fix: check the type of the 'key' of the two array 'r1' and 'r2' by montefra · Pull Request #3111 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

bug fix: check the type of the 'key' of the two array 'r1' and 'r2' #3111

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
Jun 4, 2014
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
Error message written in proper English
  • Loading branch information
montefra committed Jun 3, 2014
commit 590eeb8312a67a689958c8a852037f4cc4a6f9fe
4 changes: 2 additions & 2 deletions lib/matplotlib/mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -2633,8 +2633,8 @@ def key_desc(name):

dt2 = r2.dtype[name]
if dt1 != dt2:
msg = "The type of the '{}' in the arrays 'r1' and 'r2' must be of"
msg += " the same type"
msg = "The '{}' fields in arrays 'r1' and 'r2' must have the same"
msg += " dtype."
raise ValueError(msg.format(name))
if dt1.num>dt2.num:
return (name, dt1.descr[0][1])
Expand Down
0