Skip to content

Commit

Permalink
fix issues with ruff 0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Aug 10, 2024
1 parent 5eb0310 commit 21474eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meshmode/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def complete_some(self):
group_factory=self.bdry_grp_factory),
remote_group_infos=remote_group_infos))

del self.pending_recv_identifiers[(local_part_id, remote_part_id)]
del self.pending_recv_identifiers[local_part_id, remote_part_id]

assert not self.pending_recv_identifiers
MPI.Request.waitall(self.send_reqs)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ extend-select = [
"W", # pycodestyle
]
extend-ignore = [
"C409", # remove comprehension within tuple call
"C90", # McCabe complexity
"E226", # missing whitespace around arithmetic operator
"E241", # multiple spaces after comma
Expand Down
6 changes: 3 additions & 3 deletions test/test_firedrake_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def test_from_fd_transfer(actx_factory, fspace_degree,
eoc_recorders = {(True, d): EOCRecorder() for d in range(dim)}
if not only_convert_bdy:
for d in range(dim):
eoc_recorders[(False, d)] = EOCRecorder()
eoc_recorders[False, d] = EOCRecorder()

def get_fdrake_mesh_and_h_from_par(mesh_par):
from firedrake import Mesh, UnitCubeMesh, UnitIntervalMesh, UnitSquareMesh
Expand Down Expand Up @@ -500,7 +500,7 @@ def get_fdrake_mesh_and_h_from_par(mesh_par):

# record fd -> mm error
err = np.max(np.abs(fd2mm_f - meshmode_f))
eoc_recorders[(True, d)].add_data_point(h, err)
eoc_recorders[True, d].add_data_point(h, err)

if not only_convert_bdy:
# now transport mm -> fd
Expand All @@ -509,7 +509,7 @@ def get_fdrake_mesh_and_h_from_par(mesh_par):
mm2fd_f = fdrake_connection.from_meshmode(meshmode_f_dofarr)
# record mm -> fd error
err = np.max(np.abs(fdrake_f.dat.data - mm2fd_f.dat.data))
eoc_recorders[(False, d)].add_data_point(h, err)
eoc_recorders[False, d].add_data_point(h, err)

# assert that order is correct or error is "low enough"
for ((fd2mm, d), eoc_rec) in eoc_recorders.items():
Expand Down

0 comments on commit 21474eb

Please sign in to comment.