-
Notifications
You must be signed in to change notification settings - Fork 416
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
Cartopy 0.18.0 USCOUNTIES '20m' invalid #1368
Comments
This looks to be the same issue that caused CI to fail in #1346. @dopplershift I've tagged it as 1.0 for now, but would this warrant a 0.12.2 as well? |
Is this a full-out import failure? I haven't quite tried it out yet. |
Based on when I tested it out quick, it is an import failure in I think this means that MetPy's |
One complication I ran across when trying to implement a fix: Cartopy is LGPL licensed, so we can't directly copy/reuse any of its code in MetPy itself. |
Not sure if this is too hacky, but I was able to fix this (without copying any cartopy code) by modifying def __init__(self, name, scale, **kwargs):
"""Create USCountiesFeature instance."""
super(cfeature.NaturalEarthFeature, self).__init__(ccrs.PlateCarree(), **kwargs)
self.category = ''
self.name = name
self.scaler = (
cfeature.Scaler(scale) if not isinstance(scale, cfeature.Scaler) else scale
) |
sigh I hate everything. 😭 🤣 I'd be willing to put that "fix" in for 0.12.2. I think for master we should just implement something ourselves, relying on CartoPy's shapefile-reading functionality. |
@dopplershift Not sure if it matters, but just wanted to +1 for the quick fix for 0.12.2. Just went to do a release on our software (act-atmos) but ran into the same error on conda-forge feedstock. I'd be happy to help out in any way. |
Came across this issue recently when I upgraded both Metpy and Cartopy to the latest versions. It gave the error as mentioned in this issue. Put the fix which was suggested to remove the error from Cartopy. I would agree with the fix. |
Our team also ran into this bug after updating Cartopy, the fix above solved the issue. |
Also wanted to highlight that this issue breaks quite a large chunk of my metpy-related code. I'd be happy to help if help is needed. |
any updates on this issue? or mitigations on how to proceed forward? |
@smarru if you are able to manually edit files in your python environment, just edit |
Fixed by #1416! |
metpy/plots/cartopy_utils.py
The text was updated successfully, but these errors were encountered: