From 2705f321105f65ffa94eafa7c9530add3e062ec1 Mon Sep 17 00:00:00 2001
From: jdsteve2 <jdsteve2@illinois.edu>
Date: Tue, 23 Jan 2018 04:38:17 -0600
Subject: [PATCH] fixing more flake8 issues

---
 loopy/statistics.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/loopy/statistics.py b/loopy/statistics.py
index 4dac09c0d..acd2755ba 100755
--- a/loopy/statistics.py
+++ b/loopy/statistics.py
@@ -490,7 +490,7 @@ class Op(Record):
     count_granularity_options = ["workitem", "subgroup", "group", None]
 
     def __init__(self, dtype=None, name=None, count_granularity=None):
-        if not count_granularity in self.count_granularity_options:
+        if count_granularity not in self.count_granularity_options:
             raise ValueError("Op.__init__: count_granularity '%s' is"
                     "not allowed. count_granularity options: %s"
                     % (count_granularity, self.count_granularity_options))
@@ -563,7 +563,7 @@ class MemAccess(Record):
             raise NotImplementedError("MemAccess: variable must be None when "
                                       "mtype is 'local'")
 
-        if not count_granularity in self.count_granularity_options:
+        if count_granularity not in self.count_granularity_options:
             raise ValueError("Op.__init__: count_granularity '%s' is"
                     "not allowed. count_granularity options: %s"
                     % (count_granularity, self.count_granularity_options))
@@ -1254,8 +1254,8 @@ def get_op_map(knl, numpy_types=True, count_redundant_work=False):
                         (Op(
                             dtype=op.dtype.numpy_dtype,
                             name=op.name,
-                            count_granularity=op.count_granularity)
-                        , ct)
+                            count_granularity=op.count_granularity),
+                        ct)
                         for op, ct in six.iteritems(op_map.count_map)),
                     val_type=op_map.val_type
                     )
@@ -1446,8 +1446,8 @@ def get_mem_access_map(knl, numpy_types=True, count_redundant_work=False,
                             stride=mem_access.stride,
                             direction=mem_access.direction,
                             variable=mem_access.variable,
-                            count_granularity=mem_access.count_granularity)
-                        , ct)
+                            count_granularity=mem_access.count_granularity),
+                        ct)
                         for mem_access, ct in six.iteritems(access_map.count_map)),
                     val_type=access_map.val_type
                     )
-- 
GitLab