-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extfilenew not found with pathstyle unix #516
Comments
@priscavdsluis : the duplicate |
Would be great if the duplicate is indeed resolved, more complex conversion can indeed be resolved in that separate issue. The validation does work for all other files (net, oldext, etc), so would be great if the validation of newext also works like they do |
@MRVermeulenDeltares, @veenstrajelmer: mdu.external_forcing.extforcefilenew = ext_file_new Should be replaced with: mdu.external_forcing.extforcefilenew = ext_bnd This is because |
Should we fix #480 first? That issue is not currently on the board. |
Describe the bug
When using
path_style='unix'
on Windows, the extfile cannot be added to the mdu since it cannot be found:It is searching for a windows style path (which is good), but the c-drive is added twice. In a less portable test, it was searching for the unix-style path (which could of course not be found).
Also, I deliberately used different names in the pli/bc files of the testcase below. If it does not cost a lot of overhead, it might be nice to validate if the name combinations are valid (low priority).
To Reproduce
This is a MWE to reproduce:
Expected behavior
The extfile is found, independent on the platform-style. Also, the plifile is incorrect (2x2, but says 1x2), but this gives no validation error.
There is a workaround to supply the object instead of the path (so
mdu.external_forcing.extforcefilenew = ext_new
), which works. However, when providing amdu.geometry.network
,mdu.geometry.fixedweirfile
,mdu.external_forcing.extforcefile
or any other reference to a file, it is possible to supply a file path. Therefore, I would expect that this would also work formdu.external_forcing.extforcefilenew
.Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: