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

Avoid comparing numpy array to strings in two places#7658

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
QuLogic merged 3 commits intomatplotlib:masterfromdstansby:aspect-array-warning
Dec 22, 2016

Conversation

dstansby
Copy link
Member

Fixes#5806

Copy link
Member

@efiringefiring left a comment

Choose a reason for hiding this comment

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

Apart from the suggested change in implementation, this is good.

@@ -1282,7 +1282,7 @@ def set_aspect(self, aspect, adjustable=None, anchor=None):
etc.
===== =====================
"""
if aspect in ('equal', 'auto'):
ifisinstance(aspect, str) andaspect in ('equal', 'auto'):
Copy link
Member

Choose a reason for hiding this comment

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

It might be better to usecbook.is_string_like instead ofis_instance. Or at leastsix.string_types in place ofstr.

@dstansbydstansby changed the titleCheck aspect to avoid comparing numpy array to tuple of stringsAvoid comparing numpy array to strings in two placesDec 22, 2016
@dstansby
Copy link
MemberAuthor

There was another similar warning coming up in in#5806 that I have also fixed.

@efiringefiring changed the titleAvoid comparing numpy array to strings in two places[MRG+1] Avoid comparing numpy array to strings in two placesDec 22, 2016
@efiring
Copy link
Member

Test failures are unrelated (common random failures).

@NelleVNelleV changed the title[MRG+1] Avoid comparing numpy array to strings in two places[MRG+2] Avoid comparing numpy array to strings in two placesDec 22, 2016
@NelleV
Copy link
Member

LGTM 👍
launching the travis test again.

@QuLogicQuLogic changed the title[MRG+2] Avoid comparing numpy array to strings in two placesAvoid comparing numpy array to strings in two placesDec 22, 2016
@QuLogicQuLogic merged commitb8568f9 intomatplotlib:masterDec 22, 2016
@QuLogicQuLogic added this to the2.1 (next point release) milestoneDec 22, 2016
@dstansbydstansby deleted the aspect-array-warning branchDecember 22, 2016 22:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@efiringefiringefiring approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

4 participants
@dstansby@efiring@NelleV@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp