From 424a20ea8cbbc6f4c89cebb407f14b3ef13baea5 Mon Sep 17 00:00:00 2001 From: markus holzer <markus.holzer@fau.de> Date: Mon, 7 Jun 2021 14:15:25 +0200 Subject: [PATCH] Fix linter --- pystencils/boundaries/boundaryhandling.py | 1 - pystencils/cpu/kernelcreation.py | 2 +- pystencils/gpucuda/kernelcreation.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pystencils/boundaries/boundaryhandling.py b/pystencils/boundaries/boundaryhandling.py index 88dabad0..077b1cd5 100644 --- a/pystencils/boundaries/boundaryhandling.py +++ b/pystencils/boundaries/boundaryhandling.py @@ -444,7 +444,6 @@ class BoundaryOffsetInfo(CustomCodeNode): def create_boundary_kernel(field, index_field, stencil, boundary_functor, target='cpu', **kernel_creation_args): elements = [BoundaryOffsetInfo(stencil)] - index_arr_dtype = index_field.dtype.numpy_dtype dir_symbol = TypedSymbol("dir", np.int64) elements += [Assignment(dir_symbol, index_field[0]('dir'))] elements += boundary_functor(field, direction_symbol=dir_symbol, index_field=index_field) diff --git a/pystencils/cpu/kernelcreation.py b/pystencils/cpu/kernelcreation.py index d5966de4..4de8065e 100644 --- a/pystencils/cpu/kernelcreation.py +++ b/pystencils/cpu/kernelcreation.py @@ -7,7 +7,7 @@ import pystencils.astnodes as ast from pystencils.assignment import Assignment from pystencils.astnodes import Block, KernelFunction, LoopOverCoordinate, SympyAssignment from pystencils.cpu.cpujit import make_python_function -from pystencils.data_types import BasicType, StructType, TypedSymbol, create_type +from pystencils.data_types import StructType, TypedSymbol, create_type from pystencils.field import Field, FieldType from pystencils.transformations import ( add_types, filtered_tree_iteration, get_base_buffer_index, get_optimal_loop_ordering, diff --git a/pystencils/gpucuda/kernelcreation.py b/pystencils/gpucuda/kernelcreation.py index dc25bf1d..08226e26 100644 --- a/pystencils/gpucuda/kernelcreation.py +++ b/pystencils/gpucuda/kernelcreation.py @@ -1,7 +1,7 @@ import numpy as np from pystencils.astnodes import Block, KernelFunction, LoopOverCoordinate, SympyAssignment -from pystencils.data_types import BasicType, StructType, TypedSymbol +from pystencils.data_types import StructType, TypedSymbol from pystencils.field import Field, FieldType from pystencils.gpucuda.cudajit import make_python_function from pystencils.gpucuda.indexing import BlockIndexing -- GitLab