diff --git a/pyproject.toml b/pyproject.toml index 5c9c6e9..3b03d8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ] diff --git a/test/sensors.py b/test/sensors.py index 2d8330c..0f957eb 100644 --- a/test/sensors.py +++ b/test/sensors.py @@ -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) diff --git a/test/utility.py b/test/utility.py index 5afc7ea..87961e6 100644 --- a/test/utility.py +++ b/test/utility.py @@ -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)