Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Sep 22, 2023
1 parent 5ef6b86 commit f8192b2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion pyop2/codegen/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pyop2/op2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyop2/parloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pyop2/types/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import enum
from loopy.types import OpaqueType

from .access import * # noqa: F401
from .data_carrier import * # noqa: F401
Expand Down
1 change: 0 additions & 1 deletion test/unit/test_direct_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ def test_passthrough_mat(self):
)



if __name__ == '__main__':
import os
pytest.main(os.path.abspath(__file__))

0 comments on commit f8192b2

Please sign in to comment.