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:
parent
bbc5386cf5
commit
347d295b09
@ -2,7 +2,7 @@ import importlib
|
||||
import sys
|
||||
import os
|
||||
|
||||
__version__ = "0.9.2"
|
||||
__version__ = "0.9.3"
|
||||
|
||||
try:
|
||||
basestring
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user