Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
1b1ebcd7
Commit
1b1ebcd7
authored
6 years ago
by
Martin Bauer
Browse files
Options
Downloads
Patches
Plain Diff
Some PEP8 fixes - and removal of unused variables
parent
462f8f70
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gpucuda/indexing.py
+2
-2
2 additions, 2 deletions
gpucuda/indexing.py
with
2 additions
and
2 deletions
gpucuda/indexing.py
+
2
−
2
View file @
1b1ebcd7
...
@@ -87,7 +87,7 @@ class BlockIndexing(AbstractIndexing):
...
@@ -87,7 +87,7 @@ class BlockIndexing(AbstractIndexing):
self
.
_block_size
=
block_size
self
.
_block_size
=
block_size
self
.
_iterationSlice
=
normalize_slice
(
iteration_slice
,
field
.
spatial_shape
)
self
.
_iterationSlice
=
normalize_slice
(
iteration_slice
,
field
.
spatial_shape
)
self
.
_dim
=
field
.
spatial_dimensions
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
self
.
_compile_time_block_size
=
compile_time_block_size
@property
@property
...
@@ -100,7 +100,7 @@ class BlockIndexing(AbstractIndexing):
...
@@ -100,7 +100,7 @@ class BlockIndexing(AbstractIndexing):
return
coordinates
[:
self
.
_dim
]
return
coordinates
[:
self
.
_dim
]
def
call_parameters
(
self
,
arr_shape
):
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
),
widths
=
[
end
-
start
for
start
,
end
in
zip
(
_get_start_from_slice
(
self
.
_iterationSlice
),
_get_end_from_slice
(
self
.
_iterationSlice
,
arr_shape
))]
_get_end_from_slice
(
self
.
_iterationSlice
,
arr_shape
))]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment