Skip to content

Commit

Permalink
filename can be a Path
Browse files Browse the repository at this point in the history
  • Loading branch information
simbilod committed Feb 7, 2024
1 parent 9c21af7 commit a755de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meshwell/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def mesh(
global_scaling: float = 1.0,
global_2D_algorithm: int = 6,
global_3D_algorithm: int = 1,
filename: Optional[str] = None,
filename: Optional[str | Path] = None,
verbosity: Optional[int] = 5,
progress_bars: bool = True,
interface_delimiter: str = "___",
Expand Down Expand Up @@ -184,6 +184,8 @@ def mesh(
Returns:
meshio object with mesh information
"""
# Parse filename
filename = str(filename)

# If background mesh, create separate model
if background_remeshing_file:
Expand Down

0 comments on commit a755de1

Please sign in to comment.