morpho.utilities.reader module

Some template vars

Members: add_dict_param read_param

Functions:

Classes:

Interface between config files and processors config dictionaries Authors: J. Johnston, M. Guigue, T. Weiss Date: 06/26/18

Summary

Data:

Reference

morpho.utilities.reader.read_param(yaml_data, node, default)[source]
morpho.utilities.reader.add_dict_param(dictionary, key, value)[source]

This method checks if a key already exists in a dictionary, and if not, it adds the key and its corresponding value to the dictionary.

Could be changed to take as input a list of tuples (key, value), so multiple parameters may be added at once.