mirror of
https://github.com/gsi-upm/soil
synced 2024-12-22 08:18:13 +00:00
gexf now working, end value added
This commit is contained in:
parent
23fc9671c3
commit
59ec790820
2
soil.py
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user