Skip to content

Commit b463970

Browse files
authored
Fix DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
1 parent dd6d3f6 commit b463970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/streamplot_demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
vdat=ncfile.variables['sfc_v'][0,:,:]
1616
lons1=ncfile.variables['longitude'][:]
1717
lats1=ncfile.variables['latitude'][:]
18-
lat0=lats1[len(lats1)/2]; lon0=lons1[len(lons1)/2]
18+
lat0=lats1[len(lats1)//2]; lon0=lons1[len(lons1)//2]
1919
lons, lats=np.meshgrid(lons1,lats1)
2020
ncfile.close()
2121

0 commit comments

Comments
 (0)
close