From fdc7e6f99a8af833ec78b473c89ec48e664aaad8 Mon Sep 17 00:00:00 2001 From: "K.-Michael Aye" Date: Fri, 5 Jun 2015 11:54:28 -0600 Subject: [PATCH] removing unnecessary loop counter Why use an un-pythonic counter if it's not required? ;) --- doc/examples/plot_glcm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/plot_glcm.py b/doc/examples/plot_glcm.py index af9b4168..a5d17c82 100644 --- a/doc/examples/plot_glcm.py +++ b/doc/examples/plot_glcm.py @@ -47,7 +47,7 @@ for loc in sky_locations: # compute some GLCM properties each patch xs = [] ys = [] -for i, patch in enumerate(grass_patches + sky_patches): +for patch in (grass_patches + sky_patches): glcm = greycomatrix(patch, [5], [0], 256, symmetric=True, normed=True) xs.append(greycoprops(glcm, 'dissimilarity')[0, 0]) ys.append(greycoprops(glcm, 'correlation')[0, 0])