Skip to content

Commit

Permalink
Update signal.py
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Sep 22, 2024
1 parent 65d4974 commit 2064c73
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mesa/experimental/signals/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ class Computable(BaseObservable):
declare the Computable at the top
assign the Computed in the instance
.. code-block:: python
class MyAgent(Agent):
wealth = Computable()
def __init__(self, model):
super().__init__(model)
wealth = some_callable, args, kwargs # wip
"""

def __init__(self):
Expand Down

0 comments on commit 2064c73

Please sign in to comment.