From 1b1ebcd7e867993aca6383ffafd5b8a7f7eabb7a Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Fri, 16 Nov 2018 10:13:43 +0100 Subject: [PATCH] Some PEP8 fixes - and removal of unused variables --- gpucuda/indexing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpucuda/indexing.py b/gpucuda/indexing.py index 85de69860..ab656b5b1 100644 --- a/gpucuda/indexing.py +++ b/gpucuda/indexing.py @@ -87,7 +87,7 @@ class BlockIndexing(AbstractIndexing): self._block_size = block_size self._iterationSlice = normalize_slice(iteration_slice, field.spatial_shape) self._dim = field.spatial_dimensions - self._symbolicShape = [e if isinstance(e, sp.Basic) else None for e in field.spatial_shape] + self._symbolic_shape = [e if isinstance(e, sp.Basic) else None for e in field.spatial_shape] self._compile_time_block_size = compile_time_block_size @property @@ -100,7 +100,7 @@ class BlockIndexing(AbstractIndexing): return coordinates[:self._dim] def call_parameters(self, arr_shape): - substitution_dict = {sym: value for sym, value in zip(self._symbolicShape, arr_shape) if sym is not None} + substitution_dict = {sym: value for sym, value in zip(self._symbolic_shape, arr_shape) if sym is not None} widths = [end - start for start, end in zip(_get_start_from_slice(self._iterationSlice), _get_end_from_slice(self._iterationSlice, arr_shape))] -- GitLab