CABLE-LSM / benchcab

Tool for evaluation of CABLE land surface model
https://benchcab.readthedocs.io/en/latest/
Apache License 2.0
2 stars 4 forks source link

Clean parsing of optional `config.yaml` data #234

Closed abhaasgoyal closed 9 months ago

abhaasgoyal commented 10 months ago

As of now, the code to parse config.yaml doesn't cleanly parse optional values, doing so in different files, and overusing .get function to check their existence in config variable

TODO

Refactor the code and add a single function in utils to provide default values for optional keywords in case user has not provided them in config.yaml