From 7b7d453c7bc5480e1460f6f801fc105913514fc3 Mon Sep 17 00:00:00 2001 From: Alex Fikl Date: Wed, 27 Jun 2018 15:59:23 -0500 Subject: [PATCH] flake8 fixes --- sumpy/tools.py | 2 +- test/test_matrixgen.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sumpy/tools.py b/sumpy/tools.py index 211f3130..5b4c8c87 100644 --- a/sumpy/tools.py +++ b/sumpy/tools.py @@ -440,7 +440,7 @@ class MatrixBlockIndex(object): if isinstance(self.row.indices, cl.array.Array) or \ isinstance(self.col.indices, cl.array.Array): raise ValueError("CL `Array`s are not supported." - "Use MatrixBlockIndex.get() and then view into matrices.") + "Use MatrixBlockIndex.get() and then view into matrices.") irow = self.row.indices[self.row.ranges[i]:self.row.ranges[i + 1]] icol = self.col.indices[self.col.ranges[i]:self.col.ranges[i + 1]] diff --git a/test/test_matrixgen.py b/test/test_matrixgen.py index 33f7e352..e90a2c7a 100644 --- a/test/test_matrixgen.py +++ b/test/test_matrixgen.py @@ -27,9 +27,7 @@ import numpy as np import numpy.linalg as la import pyopencl as cl -import pyopencl.array - -from pytools.obj_array import make_obj_array +import pyopencl.array # noqa from sumpy.tools import vector_to_device from sumpy.tools import MatrixBlockIndex -- GitLab