PYIODE: support Path objects for filepath argument everywhere #555
Labels
difficulty: low
enhancement
New feature or request
good first issue
Good for newcomers
python
Python binding for IODE
@yvdabb You may want to work on this. First:
iode_python.pyx
Then, in every method/functions having a
filename
or afilepath
argument in pyiode, you have to do:filename/filepath
(something likefilename/filepath: Union[str, Path]
)filename/filepath
in the list of Parameters in the function/method documentation (filename/filepath: str or Path
)filename/filepath
is either str or Path (isisinstance(filename/filepath, (str, Path))
filename/filepath
is of type PATH (isinstance(filename/filepath, Path):
), convert it to an absolute path as string (I think the method is 'resolve()') -> check documentation of pathlibif not file.exists(): raise ValueError(...)
See for example Variables.low_to_high() and Variables.high_to_low() methods
The text was updated successfully, but these errors were encountered: