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 fix: check the type of the 'key' of the two array 'r1' and 'r2' #3111

Merged
merged 2 commits into from Jun 4, 2014

Conversation

montefra
Copy link
Contributor

@montefra montefra commented Jun 3, 2014

fix for a little bug found while working on #3060

@tacaswell tacaswell added this to the v1.4.0 milestone Jun 3, 2014
@tacaswell
Copy link
Member

Tagging this as 1.4.0, but I am inclined to deprecate all of the res_* functions.

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or "The '{}' fields in arrays 'r1' and 'r2' must have the same dtype." Right?

@montefra
Copy link
Contributor Author

montefra commented Jun 3, 2014

@efiring: of course...
Trying to write something sensible will travelling home after work and dealing with underground-bus-underground changes might have unexpected results.
Fixing it

@tacaswell
Copy link
Member

Glad to know I am not the only one who works on mpl on mass transit 😉

tacaswell added a commit that referenced this pull request Jun 4, 2014
bug fix: check the type of the 'key' of the two array 'r1' and 'r2'
@tacaswell tacaswell merged commit 33e95c5 into matplotlib:master Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants