Skip to content

Commit

Permalink
fix(tutorial2): repair math agent in tutorial 2
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernLudwigPTB committed Jan 31, 2022
1 parent 692fb54 commit 8cdc12e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions agentMET4FOF_tutorials/tutorial_2_math_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@

class MathAgent(AgentMET4FOF):
def on_received_message(self, message):
data = self.divide_by_two(message["data"])
self.send_output(data)
message["data"]["quantities"] = self.divide_by_two(
message["data"]["quantities"]
)

self.send_output(message)

# Define simple math functions.
@staticmethod
Expand Down

0 comments on commit 8cdc12e

Please sign in to comment.