Skip to content

Commit 8c4146e

Browse files
committed
make numpy1.6 compatible
1 parent c3e4952 commit 8c4146e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/basemap/pyproj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def _copytobuffer(x):
521521
# (this makes a copy - which is crucial
522522
# since buffer is modified in place)
523523
x.dtype.char
524-
inx = x.astype('d', order="C")
524+
inx = x.copy(order="C").astype('d')
525525

526526
# inx,isfloat,islist,istuple
527527
return inx,False,False,False

0 commit comments

Comments
 (0)