emod_api.demographics.Updateable module#

class emod_api.demographics.Updateable.Updateable[source]#

Bases: object

(Base) class that provides update() method for each class that inherits from this class.

to_dict() dict[source]#
update(overlay_object: ['Updateable', Dict], allow_nones: bool = False) None[source]#

Updates an object with the values from overlay_object.

Parameters:
  • overlay_object – object with overriding attributes/values to apply to THIS object

  • allow_nones – whether or not to apply/use attributes in overlay_object with value = None

Returns:

Nothing

add_parameter(key, value)[source]#

Adds a user defined key-value pair to demographics. :param key: Key :param value: Value :return: None