READCONFIGFILE¶
Copyright (c) 2024 MPI-M, Clara Bayley
—– CLEO —– File: readconfigfile.py Project: cleopy Created Date: Wednesday 17th April 2024 Author: Clara Bayley (CB) Additional Contributors: —– License: BSD 3-Clause “New” or “Revised” License https://opensource.org/licenses/BSD-3-Clause —– File Description:
- cleopy.readconfigfile.extract_floats(node, floats, notfloats)[source]¶
Function to recursively searches YAML node and add any value that is convertible to a float to a dictionary with its key
- cleopy.readconfigfile.read_configparams_into_floats(filename)[source]¶
returns dictionary of {key, values} pairs from keys from a config yaml file which can be assigned float values. Also obtains dictionary of notfloats for values that couldn’t be converted and converts nspacedims to integer if found in floats.