From 992acb2ba693c9c876f3d8ce18bed503dd8696ca Mon Sep 17 00:00:00 2001 From: Alex Fikl Date: Wed, 18 Apr 2018 17:30:51 -0500 Subject: [PATCH] flake8 fixes --- sumpy/p2p.py | 1 - sumpy/tools.py | 4 +++- test/test_matrixgen.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sumpy/p2p.py b/sumpy/p2p.py index f0bba60f..c408360d 100644 --- a/sumpy/p2p.py +++ b/sumpy/p2p.py @@ -33,7 +33,6 @@ import loopy as lp from loopy.version import MOST_RECENT_LANGUAGE_VERSION from pymbolic import var -from pytools import memoize_method, memoize_in from sumpy.tools import KernelComputation, KernelCacheWrapper diff --git a/sumpy/tools.py b/sumpy/tools.py index 4ddfb25f..b80deddd 100644 --- a/sumpy/tools.py +++ b/sumpy/tools.py @@ -297,6 +297,7 @@ class KernelComputation(object): # }}} + # {{{ class MatrixBlockIndex(object): @@ -358,7 +359,7 @@ class MatrixBlockIndex(object): return loopy_knl _, (blkranges,) = cumsum()(self.queue, - tgtranges=self.tgtranges, srcranges=self.srcranges); + tgtranges=self.tgtranges, srcranges=self.srcranges) return blkranges @@ -426,6 +427,7 @@ class MatrixBlockIndex(object): # }}} + # {{{ OrderedSet # Source: http://code.activestate.com/recipes/576694-orderedset/ diff --git a/test/test_matrixgen.py b/test/test_matrixgen.py index a687ee16..892fef63 100644 --- a/test/test_matrixgen.py +++ b/test/test_matrixgen.py @@ -84,6 +84,7 @@ def create_index_subset(nnodes, nblks, factor): return indices_, ranges_ + @pytest.mark.parametrize('factor', [1.0, 0.6]) def test_qbx_direct(ctx_getter, factor): # This evaluates a single layer potential on a circle. -- GitLab