8000 Flake8 cleanup by Cdiaz1234 · Pull Request #625 · matplotlib/basemap · GitHub
[go: up one dir, main page]

Skip to content

Flake8 cleanup #625

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix incorrect docstring return order in shiftdata()
  • Loading branch information
Cdiaz1234 committed Apr 9, 2025
commit 89b31f84be570b030fa4215284eece10b39f4a68
8 changes: 4 additions & 4 deletions packages/basemap/src/mpl_toolkits/basemap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4836,10 +4836,10 @@ def shiftdata(self,lonsin,datain=None,lon_0=None,fix_wrap_around=True):
[lon_0-180, lon_0+180] range.
================ ======================================================

if datain given, returns ``dataout,lonsout`` (data and longitudes shifted to fit in interval
[lon_0-180,lon_0+180]), otherwise just returns longitudes. If
transformed longitudes lie outside map projection region, data is
masked and longitudes are set to 1.e30.
If datain is given, returns ``lonsout, dataout`` (longitudes and data shifted to fit in the interval
[lon_0-180, lon_0+180]); otherwise, returns just the shifted longitudes. If
transformed longitudes lie outside the map projection region, data is
masked and longitudes are set to 1.e30.
"""
if lon_0 is None and 'lon_0' not in self.projparams:
raise ValueError('lon_0 keyword must be provided')
Expand Down
0