From f40fdded60998513810eb90d2453ac94df42bca3 Mon Sep 17 00:00:00 2001 From: Sebastien GOYON <shinedday@gmail.com> Date: Wed, 3 Aug 2022 08:56:16 +0200 Subject: [PATCH] Last push --- README.md | 13 +++++-------- iotAmak/amas/amas.py | 4 +++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cbd743f..3811d73 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 10b19a2..6c43d0a 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", "") -- GitLab