ok dokey, performance ist ein wenig besser

This commit is contained in:
2023-06-27 09:17:14 +02:00
parent 5514f3f1d9
commit b7dc7b99d1
15 changed files with 81 additions and 30 deletions

View File

@@ -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: