Skip to content

Commit a7c171c

Browse files
committed
api: fix bounds from range
1 parent 56d4626 commit a7c171c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

devito/types/dimension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ def _arg_values(self, interval, grid=None, args=None, **kwargs):
318318
# may represent sets of legal values. If that's the case, here we just
319319
# pick one. Note that we sort for determinism
320320
try:
321-
loc_minv = loc_minv.stop
321+
loc_minv = loc_minv.start
322322
except AttributeError:
323323
with suppress(TypeError):
324324
loc_minv = sorted(loc_minv).pop(0)
325325
try:
326-
loc_maxv = loc_maxv.stop
326+
loc_maxv = loc_maxv.stop - 1
327327
except AttributeError:
328328
with suppress(TypeError):
329329
loc_maxv = sorted(loc_maxv).pop(0)

0 commit comments

Comments
 (0)