1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-22 11:12:29 +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 sys
import os import os
__version__ = "0.9.2" __version__ = "0.9.3"
try: try:
basestring basestring

View File

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