-
Notifications
You must be signed in to change notification settings - Fork 3
Add an argument to quote paths for iMOD-WQ #1514
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
Conversation
|
Thanks for hotfixing this. FYI: This is not an immediate problem anymore: I just talked to @TeunvanWoerkom, he moved to a drive without spaces in the path. I'm not sure if we should merge this, as the Besides, Teun manually quoted the paths in his runfile to fix this and then iMOD-WQ apparently also isn't able to deal with spaces in paths (at least the version he used). It crashes upon attempting to create the results directories. Alternatively: We could raise an error if a user attempts to write a |
Hah! That changes things. It means that the somewhat nice error he reported is probably only partially true; i.e some part of the program is space aware, but not everything. Emitting a warning or raising an error is much simpler. Adding this new argument was a tedious affair (luckily it's packaged in the MODFLOW 6 logic WriteContext). |
Closes #305 # Description This throws an error when a user tries to write a model in a directory with a space in it. Follow-up to #1514 See my comment here: #1514 (comment) > Thanks for hotfixing this. FYI: This is not an immediate problem anymore: I just talked to @TeunvanWoerkom, he moved to a drive without spaces in the path. > > I'm not sure if we should merge this, as the `wq` test bench doesn't have the coverage of the `mf6` module. Most notably, we don't run a model with iMOD-WQ to test if it breaks. The current `wq` module is tried and tested in many projects, so that is sufficient to do work with. I don't want to risk breaking it with changes. > > Besides, Teun manually quoted the paths in his runfile to fix this and then iMOD-WQ apparently also isn't able to deal with spaces in paths (at least the version he used). It crashes upon attempting to create the results directories. > > Alternatively: We could raise an error if a user attempts to write a `wq` model in a folder with a space in the path? It turned out that adding quotes doesn't do the trick, as iMOD-WQ also cannot handle spaces in paths, even when they are quoted in the runfile. It crashes upon writing results. # 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
Followed up in: #1517 |
For Teun