Skip to content

Commit 3313c18

Browse files
committed
Fix addcyclic array indexing with list instead of tuple
1 parent f988c1a commit 3313c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/basemap/src/mpl_toolkits/basemap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5127,7 +5127,7 @@ def _addcyclic(a):
51275127
except IndexError:
51285128
raise ValueError('The specified axis does not correspond to an '
51295129
'array dimension.')
5130-
return npsel.concatenate((a,a[slicer]),axis=axis)
5130+
return npsel.concatenate((a,a[tuple(slicer)]),axis=axis)
51315131
def _addcyclic_lon(a):
51325132
"""addcyclic function for a single longitude array"""
51335133
# select the right numpy functions

0 commit comments

Comments
 (0)