Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Alt
pystencils
Commits
1b1ebcd7
Commit
1b1ebcd7
authored
Nov 16, 2018
by
Martin Bauer
Browse files
Some PEP8 fixes - and removal of unused variables
parent
462f8f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
gpucuda/indexing.py
View file @
1b1ebcd7
...
...
@@ -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
.
_symbolic
S
hape
=
[
e
if
isinstance
(
e
,
sp
.
Basic
)
else
None
for
e
in
field
.
spatial_shape
]
self
.
_symbolic
_s
hape
=
[
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
.
_symbolic
S
hape
,
arr_shape
)
if
sym
is
not
None
}
substitution_dict
=
{
sym
:
value
for
sym
,
value
in
zip
(
self
.
_symbolic
_s
hape
,
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
))]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment