Skip to content

Commit e53597c

Browse files
committed
compiler: Tweak for ruff happiness
1 parent 3145a64 commit e53597c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

devito/symbolics/extended_sympy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,8 +953,8 @@ def _expected_alignment(self):
953953
}
954954
try:
955955
return mapper[self.function.dtype]
956-
except KeyError:
957-
raise ValueError(
956+
except KeyError as e:
957+
raise ValueError from e(
958958
f"Unsupported dtype `{self.function.dtype}` for VectorAccess"
959959
)
960960

tests/test_mpi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ def test_merge_subset_comms_w_overlap(self, mode):
22382238

22392239
op = Operator(eqns)
22402240

2241-
op.cfunction
2241+
_ = op.cfunction
22422242

22432243
# Check generated code -- expected one halo exchange for `u` before
22442244
# the first set of loops within `tloop`, and one halo exchange for `g`

0 commit comments

Comments
 (0)