Skip to content

Commit

Permalink
improve compare
Browse files Browse the repository at this point in the history
  • Loading branch information
simbilod committed Nov 3, 2024
1 parent 21a2ce2 commit ef8c59b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meshwell/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
from meshwell.config import PATH


def compare_meshes(meshfile: Path):
def compare_meshes(meshfile: Path, meshfile2: Path | None = None):
meshfile1 = meshfile
meshfile2 = PATH.references / (str(meshfile.with_suffix("")) + ".reference.msh")
meshfile2 = meshfile2 or PATH.references / (
str(meshfile.with_suffix("")) + ".reference.msh"
)

with open(str(meshfile1)) as f:
expected_lines = f.readlines()
Expand Down

0 comments on commit ef8c59b

Please sign in to comment.