From b463970a79cfffa2a75d1d3f78106efff96f6e24 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Wed, 1 Feb 2017 23:25:51 -0800 Subject: [PATCH] Fix DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future --- examples/streamplot_demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/streamplot_demo.py b/examples/streamplot_demo.py index 034c4c101..7a775b005 100755 --- a/examples/streamplot_demo.py +++ b/examples/streamplot_demo.py @@ -15,7 +15,7 @@ vdat = ncfile.variables['sfc_v'][0,:,:] lons1 = ncfile.variables['longitude'][:] lats1 = ncfile.variables['latitude'][:] -lat0 = lats1[len(lats1)/2]; lon0 = lons1[len(lons1)/2] +lat0 = lats1[len(lats1)//2]; lon0 = lons1[len(lons1)//2] lons, lats = np.meshgrid(lons1,lats1) ncfile.close()