1
0
mirror of https://github.com/gsi-upm/soil synced 2024-12-22 08:18:13 +00:00

Updated to match NetworkX's 2.0 API

This commit is contained in:
J. Fernando Sánchez 2017-10-05 15:54:18 +02:00
parent bbc5386cf5
commit 347d295b09
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import importlib
import sys
import os
__version__ = "0.9.2"
__version__ = "0.9.3"
try:
basestring

View File

@ -183,8 +183,8 @@ class SoilEnvironment(nxsim.NetworkEnvironment):
if lastvisible:
spells.append((laststep, None))
if spells:
G.add_node(agent.id, attributes, spells=spells)
G.add_node(agent.id, **attributes, spells=spells)
else:
G.add_node(agent.id, attributes)
G.add_node(agent.id, **attributes)
return G