From 3bb76f4fea9c04b1956c514208f4e0dd3f9b9776 Mon Sep 17 00:00:00 2001 From: Malin Date: Thu, 19 Sep 2024 16:02:25 +0200 Subject: [PATCH] Traffic messages should be ignored by agents. --- .../mango_direct_connection/mango_communication_network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cosima_core/mango_direct_connection/mango_communication_network.py b/cosima_core/mango_direct_connection/mango_communication_network.py index 7052afb..9701145 100644 --- a/cosima_core/mango_direct_connection/mango_communication_network.py +++ b/cosima_core/mango_direct_connection/mango_communication_network.py @@ -196,6 +196,7 @@ async def step_mango_containers(self, received_messages: list): received_messages_for_container = [str.encode(get_dict_from_protobuf_message(message)['content']) for message in received_messages if type(message) == InfoMessage + and 'Traffic' not in message.msg_id and message.receiver == container_name] output = await container.step(simulation_time=self._current_time, incoming_messages=received_messages_for_container)