Skip to content
Snippets Groups Projects
Commit b7205955 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix remaining tests

parent 8f58d2ce
1 merge request!396[BUGFIX] GPU slicing
This commit is part of merge request !396. Comments created here will be created in the context of that merge request.
...@@ -226,7 +226,7 @@ class BlockIndexing(AbstractIndexing): ...@@ -226,7 +226,7 @@ class BlockIndexing(AbstractIndexing):
end = [s.stop if s.stop != 0 else 1 for s in numeric_iteration_slice] end = [s.stop if s.stop != 0 else 1 for s in numeric_iteration_slice]
for i, s in enumerate(numeric_iteration_slice): for i, s in enumerate(numeric_iteration_slice):
if s.step and s.step != 1: if s.step and s.step != 1:
end[i] = div_floor(end[i], s.step) end[i] = div_ceil(s.stop - s.start, s.step) + s.start
if self._dim < 4: if self._dim < 4:
conditions = [c < e for c, e in zip(self.coordinates, end)] conditions = [c < e for c, e in zip(self.coordinates, end)]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment