Skip to content

Commit

Permalink
Enable E741
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Dec 21, 2024
1 parent 00ce128 commit 272505d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ select = [
]
ignore = [
"C901", # function is too complex (TODO #165: enable this)
"E741", # ambiguous variable name
"F403", # unable to detect undefined names
"F405", # name may be undefined, or defined from star imports
]
Expand Down
2 changes: 1 addition & 1 deletion test/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def interweaved(x, y):


def mesh_for_sensors(dim, n):
mesh = uniform_mesh(dim, n, l=2)
mesh = uniform_mesh(dim, n, length=2)
coords = firedrake.Function(mesh.coordinates)
coords.interpolate(coords - as_vector([1] * dim))
return firedrake.Mesh(coords)
4 changes: 2 additions & 2 deletions test/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from goalie.metric import RiemannianMetric


def uniform_mesh(dim, n, l=1, **kwargs):
args = [n] * dim + [l]
def uniform_mesh(dim, n, length=1, **kwargs):
args = [n] * dim + [length]
return (firedrake.SquareMesh if dim == 2 else firedrake.CubeMesh)(*args, **kwargs)


Expand Down

0 comments on commit 272505d

Please sign in to comment.