From 59ec7908206be622fd98b19480ae7be46950d6c9 Mon Sep 17 00:00:00 2001 From: Alberto Pascual Date: Thu, 4 May 2017 14:11:22 +0200 Subject: [PATCH] gexf now working, end value added --- soil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soil.py b/soil.py index 332667a..73ced7b 100644 --- a/soil.py +++ b/soil.py @@ -21,7 +21,7 @@ def visualization(graph_name): for t_step in models.networkStatus["agent_%s" % x][attribute]: prec = 2 output = math.floor(models.networkStatus["agent_%s" % x][attribute][t_step] * (10 ** prec)) / (10 ** prec) # 2 decimals - emotionStatusAux.append((output, t_step,None)) + emotionStatusAux.append((output, t_step, t_step+settings.timeout)) attributes = {} attributes[attribute] = emotionStatusAux G.add_node(x, attributes)