Updateable
Updateable
(Base) class that provides update() method for each class that inherits from this class.
Source code in emod_api/demographics/Updateable.py
add_parameter(key, value)
Adds a user defined key-value pair to demographics. :param key: Key :param value: Value :return: None
update(overlay_object, allow_nones=False)
Updates an object with the values from overlay_object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
overlay_object
|
[Updateable, Dict]
|
object with overriding attributes/values to apply to THIS object |
required |
allow_nones
|
bool
|
whether or not to apply/use attributes in overlay_object with value = None |
False
|
Returns:
| Type | Description |
|---|---|
None
|
Nothing |