diff --git a/README.md b/README.md index cbd743f609d8e03409de886a9cd9b5b41881d1ec..3811d733f611ad51c9030f695a56a51496c94cef 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,12 @@ **Internship tutor :** Guilhem MARCILLAUD, IRIT SMAC team. - [**IoTAMAK : a framework for distributed MAS**](#iotamak--a-framework-for-distributed-mas) - - [**Definition**](#definition) - - [**Goal**](#goal) - - [**Subject**](#subject) + - [**Introduction**](#introduction) + - [**Definition**](#definition) - [**Context**](#context) - - [**Constraint**](#constraint) - - [**Solution**](#solution) - - [**Project managment**](#project-managment) + - [**Problem and objective**](#problem-and-objective) + - [**Solution**](#solution) + - [**Project management**](#project-management) - [**Development**](#development) - [**IoTAMAK core**](#iotamak-core) - [**Code structure** :](#code-structure-) @@ -73,8 +72,6 @@ The project will be split into 2 parts : ### **Project management** -Meeting : weekly - Tool : * Gitlab * Trello diff --git a/iotAmak/amas/amas.py b/iotAmak/amas/amas.py index 10b19a2ec5a3b65dcdc43f781262b9e801153ace..6c43d0a0c68ce368c99e69f76897d564ee23dffa 100644 --- a/iotAmak/amas/amas.py +++ b/iotAmak/amas/amas.py @@ -69,7 +69,9 @@ class Amas(Schedulable, BaseAmas): return self.publish("amas/all_metric", str(self.agents_metric)) - self.publish("amas/graph", str(self.to_graph())) + graph = self.to_graph() + if graph is not None: + self.publish("amas/graph", str(graph)) self.on_cycle_begin() self.client.publish("amas/action_done", "")