From a755de191140d267f4012ffd9f7b149762281091 Mon Sep 17 00:00:00 2001 From: simbilod Date: Wed, 7 Feb 2024 10:07:41 -0800 Subject: [PATCH] filename can be a Path --- meshwell/model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meshwell/model.py b/meshwell/model.py index 9249623..608bb05 100644 --- a/meshwell/model.py +++ b/meshwell/model.py @@ -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 = "___", @@ -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: