esm_master package¶
Top-level package for ESM Master.
Submodules¶
esm_master.compile_info module¶
-
esm_master.compile_info.
combine_components_yaml
()[source]¶ Combines various YAML files in esm_master config directory.
The esm_master config directory is taken from the
.esmtoolsrc
file as${FUNCTION_PATH}/esm_master/
. All files under thecomponents
,setups
, andcouplings
sub-directories are read into the dictionary.Returns: A dictionary equivalent of all components, couplings, setups, and general information. Return type: dict
-
esm_master.compile_info.
get_all_package_info
(packages, cat, cat_dir, components_dict, relevant_entries)[source]¶
-
esm_master.compile_info.
get_one_package_info
(package, cat, cat_dir, components_dict, relevant_entries)[source]¶
-
esm_master.compile_info.
get_relevant_info
(relevant_entries, raw_config, merge_into_this_config=None)[source]¶ Gets relevant information from the raw configuration and update the given configuration dictionary
merge_into_this_config
.Parameters: - relevant_entries (list) – A list of relevant entries from which information needs to be extracted.
- raw_config (dict) – A dictionary containing the raw information read from the yaml file.
- merge_into_this_config (dict) – A dictionary in which the relevant information will be added.
Returns: merge_into_this_config – A dictionary given as input, then updated with the relevant information.
Return type: dict
esm_master.database module¶
esm_master.database_actions module¶
esm_master.general_stuff module¶
-
class
esm_master.general_stuff.
GeneralInfos
[source]¶ Bases:
object
-
esm_master.general_stuff.
write_minimal_user_config
(config)[source]¶ In order to generate a SimulationSetup using esm_parser, we need a small and simple user_config. It doesn’t really matter for esm_master if all the entries are correct, as we don’t need most of them, but the esm_parser fails if they don’t exist as all… Needs the name of the model / setup, and version (if exists) as input.