From 62c884e3fa1880fbe8e05cffdf67ee1e1bce55cd Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Fri, 6 Oct 2017 10:34:47 +0100 Subject: [PATCH] Fix compatibility with networkx 2.0 --- tardis/plasma/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tardis/plasma/base.py b/tardis/plasma/base.py index ee0278e6ebb..9c53458aace 100644 --- a/tardis/plasma/base.py +++ b/tardis/plasma/base.py @@ -190,7 +190,7 @@ def _resolve_update_list(self, changed_properties): descendants_ob += nx.descendants(self.graph, node_name) descendants_ob = list(set(descendants_ob)) - sort_order = nx.topological_sort(self.graph) + sort_order = list(nx.topological_sort(self.graph)) descendants_ob.sort(key=lambda val: sort_order.index(val) )