From 3526fa29d75784b7dfc87c428120997a5fc1a393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Sun, 9 Dec 2018 14:06:07 +0100 Subject: [PATCH] Fix bug parallel --- soil/VERSION | 2 +- soil/environment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/soil/VERSION b/soil/VERSION index 51de330..c317a91 100644 --- a/soil/VERSION +++ b/soil/VERSION @@ -1 +1 @@ -0.13.0 \ No newline at end of file +0.13.1 diff --git a/soil/environment.py b/soil/environment.py index 501ecc9..8e1e9e4 100644 --- a/soil/environment.py +++ b/soil/environment.py @@ -322,7 +322,7 @@ class Environment(nxsim.NetworkEnvironment): def __getstate__(self): state = self.__dict__.copy() state['G'] = json_graph.node_link_data(self.G) - state['network_agents'] = agents._serialize_distribution(self.network_agents) + state['network_agents'] = agents.serialize_distribution(self.network_agents) state['environment_agents'] = agents._convert_agent_types(self.environment_agents, to_string=True) return state