You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception has occurred: FileNotFoundError
[Errno 2] No such file or directory: './DATA/metaswap/para_sim.inp'
File "C:\data\codes\git\imod-python_trunk\imod\msw\utilities\parse.py", line 47, in read_para_sim
with open(file, "r") as f:
^^^^^^^^^^^^^^^
File "C:\data\codes\git\imod-python_trunk\imod\msw\model.py", line 430, in from_imod5_data
parasim_settings = read_para_sim(path_to_parasim)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\data\projects\project_iMOD-Python\conversion\import_msw.py", line 37, in
msw_model = imod.msw.MetaSwapModel.from_imod5_data(imod5_data, dis_pkg, times)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: './DATA/metaswap/para_sim.inp'
Steps to reproduce
Simply specify relative paths for the extra MetaSWAP files.
The text was updated successfully, but these errors were encountered:
…in iMOD projectfile (#1529)
Fixes#1528
# Description
<!---
Thanks for opening a PR!
Please add your description here of changes made and how they are going
to
resolve the linked issue
-->
Fixes the issue of using relative paths for the extra MetaSWAP files in
the iMOD project file.
# Checklist
<!---
Before requesting review, please go through this checklist:
-->
- [x] Links to correct issue
- [x] Update changelog, if changes affect users
- [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [x] Unit tests were added
- [ ] **If feature added**: Added/extended example
---------
Co-authored-by: JoerivanEngelen <[email protected]>
Bug description
When relative paths are used for the extra MetaSWAP files in the iMOD project (.prj) file, e.g.
this will result in a crash like:
Steps to reproduce
Simply specify relative paths for the extra MetaSWAP files.
The text was updated successfully, but these errors were encountered: