Obsfile path with spaces is not supported #564
Labels
priority: high
type: bug
Something isn't working
type: compatibility
Changes needed to be compatible with the computational core
Projects
Describe the bug
When there is a space in an obsfile path, HYDROLIB-core raises a ValidationError since it only reads the path up to the space:
The path of the obsfile is
C:\DATA\dfm_tools\tests\examples_workinprogress\Vietnam _model_forissue\Vietnam_obs.xyn
To Reproduce
Additional information
I noticed that when supplying
mdu.output.obsfile = obs_mod
instead ofmdu.output.obsfile = file_obs
, it raises:And when supplying
mdu.output.obsfile = [obs_mod]
or ofmdu.output.obsfile = [file_obs]
, there is no error and the process successfully continues.Expected behavior
If a space is included, it will still work. Just like for files like ext files and such, since it works here. With the insight from the additional information: align the error message if a user supplies a filepath with the one that is raised when a user supplies a
ObservationPointModel
.Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: