emod_api.demographics.Node module¶
- class emod_api.demographics.Node.Node(lat, lon, pop, name: Optional[str] = None, area: Optional[float] = None, forced_id: Optional[int] = None, individual_attributes: Optional[emod_api.demographics.PropertiesAndAttributes.IndividualAttributes] = None, individual_properties: Optional[emod_api.demographics.PropertiesAndAttributes.IndividualProperties] = None, node_attributes: Optional[emod_api.demographics.PropertiesAndAttributes.NodeAttributes] = None, meta: Optional[dict] = None)[source]¶
Bases:
emod_api.demographics.Updateable.Updateable
- default_population = 1000¶
- res_in_degrees = 0.041666666666666664¶
- property id¶
- classmethod from_data(data: dict)[source]¶
Function used to create the node object from data (most likely coming from a demographics file) :param data: :return:
- property pop¶
- property lon¶
- property lat¶
- property birth_rate¶
- class emod_api.demographics.Node.OverlayNode(node_id, latitude=None, longitude=None, initial_population=None, **kwargs)[source]¶
Bases:
emod_api.demographics.Node.Node
Node that only requires an ID. Use to overlay a Node.