removing unnecessary loop counter

Why use an un-pythonic counter if it's not required? ;)
This commit is contained in:
K.-Michael Aye
2015-06-05 11:54:28 -06:00
parent ae2b0a26db
commit fdc7e6f99a
+1 -1
View File
@@ -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])