From 347d295b093c78f177118e3ae18124730ea5497c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Thu, 5 Oct 2017 15:54:18 +0200 Subject: [PATCH] Updated to match NetworkX's 2.0 API --- soil/__init__.py | 2 +- soil/environment.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/soil/__init__.py b/soil/__init__.py index ce6ab7a..4dde0e7 100644 --- a/soil/__init__.py +++ b/soil/__init__.py @@ -2,7 +2,7 @@ import importlib import sys import os -__version__ = "0.9.2" +__version__ = "0.9.3" try: basestring diff --git a/soil/environment.py b/soil/environment.py index 927063c..3317cf6 100644 --- a/soil/environment.py +++ b/soil/environment.py @@ -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