-
Notifications
You must be signed in to change notification settings - Fork 370
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
API: inconsistent projection arguments in img_transform.regrid #2013
Comments
I prefer consistency, so I would say yes that sounds like a great idea. A PR for the change would be great! There are probably other locations of mismatch as well, so if there are others you find don't hesitate to make PRs for them. |
If we do that, it's technically an API change (since people passing via kwargs would be broken). That's fine, but we need to make sure it gets noted in the release notes. |
I have two questions:
|
@ellequelle In some cases we'll warn for a change. I think this is minimally disruptive, and given our 0.x versioning, I feel fine just making the change. We generally don't have an on-going what's new file, but the release manager writes up the release notes from the PRs included in the release milestone. The easiest way to deal with this might be to just add an "api change" label. |
API: GH #2013 make regrid arguments, docstring consistent
While helping someone with their code I noticed this inconsistency in the
img_transform.regrid
API and docstring. The projection parameters aresource_cs
andtarget_proj
, but in the docstring they're listed assource_cs
andtarget_cs
:regrid excerpt
cartopy/lib/cartopy/img_transform.py
Lines 222 to 241 in 22cdafc
Could this be changed to match
img_transform.wrap_array
, withsource_proj
andtarget_proj
?wrap_array excerpt
cartopy/lib/cartopy/img_transform.py
Lines 124 to 141 in 22cdafc
The text was updated successfully, but these errors were encountered: