From ad66dd93999a18789b1ee68267d79f28ef7150e2 Mon Sep 17 00:00:00 2001 From: Dilawar Singh <dilawars@ncbs.res.in> Date: Sat, 31 Dec 2016 15:07:02 +0530 Subject: [PATCH] Fixes to BhallaLab/moose#204. --- moose-core/python/moose/genesis/_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moose-core/python/moose/genesis/_main.py b/moose-core/python/moose/genesis/_main.py index 65963cab..4e61141f 100644 --- a/moose-core/python/moose/genesis/_main.py +++ b/moose-core/python/moose/genesis/_main.py @@ -276,6 +276,8 @@ def autoCoordinates(meshEntry,srcdesConnection): G.add_edge(element(items[0]).path,inn.path) position = nx.graphviz_layout(G, prog = 'dot') + if int( nx.__version__.split( '.' )[-1] ) >= 11: + position = nx.spring_layout( G ) #agraph = nx.to_agraph(G) #agraph.draw("writetogenesis.png", format = 'png', prog = 'dot') sceneitems = {} -- GitLab