smash.read_setup#
- smash.read_setup(path)[source]#
Read Model initialization setup dictionary.
- Parameters:
- pathstr
The file path.
- Returns:
- dict
A setup dictionary loaded from YAML file.
See also
save_setupSave Model initialization setup dictionary.
Examples
>>> setup, mesh = smash.load_dataset("cance") >>> setup {'structure': 'gr-a', 'dt': 3600, 'start_time': '2014-09-15 00:00', ...}
Save setup
>>> smash.save_setup(setup, "setup.yaml")
Read setup (the reloaded setup keys will be alphabetically sorted)
>>> setup_rld = smash.read_setup("setup.yaml") setup_rld {'daily_interannual_pet': True, 'descriptor_name': ['slope', 'dd'], ...}