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:
parent
bbc5386cf5
commit
347d295b09
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user