diff --git a/pyop2/codegen/builder.py b/pyop2/codegen/builder.py index 637f15ad2..6f3460c29 100644 --- a/pyop2/codegen/builder.py +++ b/pyop2/codegen/builder.py @@ -4,7 +4,6 @@ from functools import reduce import numpy -from loopy.types import OpaqueType from pyop2.global_kernel import (GlobalKernelArg, DatKernelArg, MixedDatKernelArg, MatKernelArg, MixedMatKernelArg, PermutedMapKernelArg, ComposedMapKernelArg, PassthroughKernelArg) from pyop2.codegen.representation import (Accumulate, Argument, Comparison, Conditional, diff --git a/pyop2/op2.py b/pyop2/op2.py index e0d36e194..5f48c04c5 100644 --- a/pyop2/op2.py +++ b/pyop2/op2.py @@ -36,7 +36,7 @@ import atexit from pyop2.configuration import configuration -from pyop2.datatypes import PetscMatType +from pyop2.datatypes import PetscMatType # noqa: F401 from pyop2.logger import debug, info, warning, error, critical, set_log_level from pyop2.mpi import MPI, COMM_WORLD, collective diff --git a/pyop2/parloop.py b/pyop2/parloop.py index 776fec92d..abce99e03 100644 --- a/pyop2/parloop.py +++ b/pyop2/parloop.py @@ -665,7 +665,7 @@ class PassthroughArg(LegacyArg): """Argument that is simply passed to the local kernel without packing. :param dtype: The datatype of the argument. This is needed for code generation. - :param data: + :param data: A pointer to the data. """ # We don't know what the local kernel is doing with this argument access = Access.RW diff --git a/pyop2/types/__init__.py b/pyop2/types/__init__.py index 03a6b9963..b33a4c1de 100644 --- a/pyop2/types/__init__.py +++ b/pyop2/types/__init__.py @@ -1,5 +1,4 @@ import enum -from loopy.types import OpaqueType from .access import * # noqa: F401 from .data_carrier import * # noqa: F401 diff --git a/test/unit/test_direct_loop.py b/test/unit/test_direct_loop.py index 45fd0ef5c..355510997 100644 --- a/test/unit/test_direct_loop.py +++ b/test/unit/test_direct_loop.py @@ -286,7 +286,6 @@ def test_passthrough_mat(self): ) - if __name__ == '__main__': import os pytest.main(os.path.abspath(__file__))