ok dokey, performance ist ein wenig besser
This commit is contained in:
@@ -29,7 +29,7 @@ class BaseAgent(ABC):
|
||||
"""
|
||||
Disables agent by removing it from the simulation
|
||||
"""
|
||||
self.simulation.unregister_agent(id)
|
||||
self.simulation.unregister_agent(self.id)
|
||||
def register(self):
|
||||
"""
|
||||
Enables agent by adding it to the simulation:
|
||||
|
||||
Reference in New Issue
Block a user