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

config.yaml input validation #143

Closed SeanBryan51 closed 1 year ago

SeanBryan51 commented 1 year ago

Currently benchcab doesn't raise an exception if you give it an invalid key.

Ben suggested using cerberus for doing input validation on python dictionaries.

Another option is schema.

SeanBryan51 commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @bschroeter @ccarouge

bschroeter commented 1 year ago

This is basically complete, but there appears to be an issue with the conda version of cerberus 1.3.4. They have an approved but unmerged PR here (https://github.com/conda-forge/cerberus-feedstock/pull/15) that I've just nudged them on. Once they update their conda recipe I'll be able to open a PR.

bschroeter commented 1 year ago

Cerberus is updated - waiting on #172 to rebase/merge from.