Eawag-AppliedSystemAnalysis / Simstrat

Simstrat - 1D lake model
http://www.eawag.ch/en/department/surf/projects/simstrat/
GNU General Public License v3.0
18 stars 8 forks source link

Support for yaml configuration file #56

Open f-baerenbold opened 2 years ago

f-baerenbold commented 2 years ago

Comments are not standard in json files and need to be removed for some applications (mainly automation). All the comments are anyways available in the manual.

tadhg-moore commented 2 years ago

I also noticed this recently and was wondering why Simstrat uses a json file? As the programming language I use (R) does not have any "clean" ways for reading/writing json files. I know changing the configuration file would probably be a big change, but a yaml or namelist file are used for other lake models and are human and machine readable.

This is more of a general comment, and not a request for you to change the configuration file.

f-baerenbold commented 2 years ago

Good question. We probably could use a yaml or nml in the future.. it was not a problem for us as we usually use python where json is supported.

f-baerenbold commented 1 year ago

We might add support for yaml in the future if there is a demand for this and if we have capacity to do so. We will keep the json configuration file though, the yaml would come as a second possibility. @tadhg-moore : you are welcome to contribute in this direction if you like and if it is of use for you