@@ -7,7 +7,6 @@ class PersonAgent(mg.GeoAgent):
77
88 def __init__ (
99 self ,
10- unique_id ,
1110 model ,
1211 geometry ,
1312 crs ,
@@ -19,14 +18,13 @@ def __init__(
1918 ):
2019 """
2120 Create a new person agent.
22- :param unique_id: Unique identifier for the agent
2321 :param model: Model in which the agent runs
2422 :param geometry: Shape object for the agent
2523 :param agent_type: Indicator if agent is infected
2624 ("infected", "susceptible", "recovered" or "dead")
2725 :param mobility_range: Range of distance to move in one step
2826 """
29- super ().__init__ (unique_id , model , geometry , crs )
27+ super ().__init__ (model , geometry , crs )
3028 # Agent parameters
3129 self .atype = agent_type
3230 self .mobility_range = mobility_range
@@ -84,9 +82,7 @@ def __repr__(self):
8482class NeighbourhoodAgent (mg .GeoAgent ):
8583 """Neighbourhood agent. Changes color according to number of infected inside it."""
8684
87- def __init__ (
88- self , unique_id , model , geometry , crs , agent_type = "safe" , hotspot_threshold = 1
89- ):
85+ def __init__ (self , model , geometry , crs , agent_type = "safe" , hotspot_threshold = 1 ):
9086 """
9187 Create a new Neighbourhood agent.
9288 :param unique_id: Unique identifier for the agent
@@ -97,7 +93,7 @@ def __init__(
9793 :param hotspot_threshold: Number of infected agents in region
9894 to be considered a hot-spot
9995 """
100- super ().__init__ (unique_id , model , geometry , crs )
96+ super ().__init__ (model , geometry , crs )
10197 self .atype = agent_type
10298 self .hotspot_threshold = (
10399 hotspot_threshold # When a neighborhood is considered a hot-spot
0 commit comments