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

Appearance settings

Fixes currently release version of cartopy #12131

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
Sep 16, 2018

Conversation

tacaswell
Copy link
Member

ht to @anntzer for the sub-class search code.

  • Has Pytest style unit tests
  • Code is Flake 8 compliant

closes matplotlib#11966

The issue has also been fixed on the cartopy
side (SciTools/cartopy#1041) but has not been
released yet.
@tacaswell tacaswell added this to the v3.0 milestone Sep 15, 2018
@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Sep 15, 2018
# this here to support cartopy which was using a private part of the
# API to register their Axes subclasses.

# In 3.1 this should be changed to a dict subclass that warns on use
Copy link
Member

Choose a reason for hiding this comment

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

Why not start warning on use in this version? Warning is basically free after all and it gives more notice.

Copy link
Member Author

@tacaswell tacaswell Sep 16, 2018

Choose a reason for hiding this comment

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

Because there is not a released version of cartopy with the fix on their side yet. I don't want to warn at their users and give them no way to fix it.

[corrected typo]

return type("%sSubplot" % axes_class.__name__,
(SubplotBase, axes_class),
{'_axes_class': axes_class})
try:
Copy link
Member

Choose a reason for hiding this comment

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

I think this might be clearer if you use a for / else loop.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm indifferent either way.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, for/else would be clearer, but since this is a temporary workaround I don‘t care too much.

@timhoffm
Copy link
Member

Is there a description of the issue this is working around?

@anntzer
Copy link
Contributor

anntzer commented Sep 16, 2018

#11966

return type("%sSubplot" % axes_class.__name__,
(SubplotBase, axes_class),
{'_axes_class': axes_class})
try:
Copy link
Member

Choose a reason for hiding this comment

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

Indeed, for/else would be clearer, but since this is a temporary workaround I don‘t care too much.

@jklymak jklymak merged commit 074cee4 into matplotlib:master Sep 16, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 16, 2018
dstansby added a commit that referenced this pull request Sep 16, 2018
…131-on-v3.0.x

Backport PR #12131 on branch v3.0.x (Fixes currently release version of cartopy)
@tacaswell tacaswell deleted the API_dont_break_cartopy branch September 17, 2018 12:14
@pelson
Copy link
Member

pelson commented Dec 5, 2018

I didn't check already, but we cut v0.17 of cartopy last week and I hope it is now safe to revert this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.