ai2cm / fv3net

explore the FV3 data for parameterization
MIT License
16 stars 3 forks source link

Allow reservoir model keys to be string repr of integers #2356

Closed AnnaKwa closed 1 year ago

AnnaKwa commented 1 year ago

JSON and YAML don't write integer keys. This is an issue when autogenerating configs for prognostic runs where the script fills in the rank models in the resevoir corrector field with integer keys but json.dump saves the keys as strings. This PR allows these keys to be string representations of integers, which are converted to integers after the config is loaded.