Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
adler-j committed Jun 3, 2017
1 parent c881e7e commit a70a2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odl/discr/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,13 @@ def stride(self):
>>> g = RectGrid([0, 1, 2], [0, 1, 4])
>>> g.stride
array([ 1., nan])
array([ 1., nan])
0.0 returned for degenerate dimension:
>>> g = RectGrid([0, 1, 2], [0])
>>> g.stride
array([ 1., 0.0])
array([ 1., 0.])
"""
# Cache for efficiency instead of re-computing
if self.__stride is None:
Expand Down

0 comments on commit a70a2fc

Please sign in to comment.