Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 7, 2023
1 parent 86f2a09 commit 775dad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pybamm/solvers/processed_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def initialise_2D_scikit_fem(self):
def _process_spatial_variable_names(self, spatial_variable):
if len(spatial_variable) == 0:
return None

# Extract names
raw_names = []
for var in spatial_variable:
Expand All @@ -360,7 +360,7 @@ def _process_spatial_variable_names(self, spatial_variable):
raw_names.append(var)
else:
raw_names.append(var.name)

# Rename battery variables to match PyBaMM convention
if all([var.startswith("r") for var in raw_names]):
return "r"
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_meshes/test_meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_mesh_creation_no_parameters(self):

# check geometry
self.assertEqual(mesh.geometry, geometry)

# check boundary locations
self.assertEqual(mesh["negative particle"].edges[0], 0)
self.assertEqual(mesh["negative particle"].edges[-1], 1)
Expand Down

0 comments on commit 775dad0

Please sign in to comment.