Skip to content

Commit db5175b

Browse files
committed
misc: Linting and tidy-up
1 parent d503c55 commit db5175b

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

devito/ir/support/basic.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,6 @@ def distance(self, other):
385385
# it's provable that they never intersect
386386
if sai and sit == oit and disjoint_test(self[n], other[n], sai, sit):
387387
return Vector(S.ImaginaryUnit)
388-
389-
# if 'p_bck_xx,[t, x + 9, y + 16, z + 16' in str(self):
390-
# from IPython import embed; embed()
391388

392389
# Compute the distance along the current IterationInterval
393390
if self.function._mem_shared:
@@ -1444,24 +1441,18 @@ def degenerating_indices(i0, i1, function):
14441441
pass
14451442

14461443
# Case 2: SteppingDimension corresponding to buffer of size 1
1447-
# if str(i1) == "t - 1" and str(i0) == 't':
1448-
# from IPython import embed; embed()
1449-
14501444
# Extract dimension from both IndexAccessFunctions -> d0, d1
14511445
try:
14521446
d0 = i0.d
14531447
except AttributeError:
14541448
d0 = i0
1455-
14561449
try:
14571450
d1 = i1.d
14581451
except AttributeError:
14591452
d1 = i1
14601453

14611454
with suppress(AttributeError):
1462-
if d0 is d1 and d0.is_Stepping:
1463-
# Buffer is size 1
1464-
if function._size_domain[d0] == 1:
1465-
return True
1455+
if d0 is d1 and d0.is_Stepping and function._size_domain[d0] == 1:
1456+
return True
14661457

14671458
return False

0 commit comments

Comments
 (0)