consider using Configurations.jl for Config handling #243
Labels
user-experience
Improvements to the settings file, logging, error handling, etc.
v1.0
Activities related to v1.0
Milestone
In Deltares/Ribasim#66 @evetion improved the TOML config handling, which includes some validation. It is worth considersing using a similar approach in Wflow. This could simplify code and catch user errors earlier.
Currently we create our own struct, and overload a bunch of functions to have things like
config.option
work:https://github.com/Deltares/Wflow.jl/blob/v0.6.2/src/io.jl#L36-L39
That could be turned into something like this:
https://github.com/Deltares/Ribasim.jl/blob/3c8f9c48fae613e1e45d3dfffc97e861a95324a6/src/config.jl#L32-L59
The text was updated successfully, but these errors were encountered: