We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40075d commit 3225dbbCopy full SHA for 3225dbb
mesa/experimental/devs/eventlist.py
@@ -33,6 +33,12 @@ class SimulationEvent:
33
function_args (list[Any]): Argument for the function
34
function_kwargs (Dict[str, Any]): Keyword arguments for the function
35
36
+
37
+ Notes:
38
+ simulation events use a weak reference to the callable. Therefore, you cannot pass a lambda function in fn.
39
+ A simulation event where the callable no longer exists (e.g., because the agent has been removed from the model)
40
+ will fail silently.
41
42
"""
43
44
_ids = itertools.count()
0 commit comments