Skip to content

Commit

Permalink
Fixing show graph on macos due to issue with graphviz for mkdir freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Nov 14, 2023
1 parent 10fdaa9 commit 90cfdf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "psyneulinkviewer",
"version": "0.0.4",
"version": "0.0.5",
"main": "./public/electron.js",
"description": "An editor and viewer for PsyNeuLink models",
"private": true,
Expand Down
5 changes: 3 additions & 2 deletions src/server/model/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ def generate_graphviz(self):
node = self.model_tree.get_graph()[key].get_node()
if node.componentType in self.psyneulink_composition_classes:
gv_node = None
node.show_graph(show_node_structure='all')
gv_node = node.show_graph(show_node_structure='all', output_fmt="gv")
# TODO: below commented since breaking on macos
# node.show_graph(show_node_structure=pnl.ALL)
gv_node = node.show_graph(show_node_structure=pnl.ALL, output_fmt="gv")
self.graphviz_graph[PNLTypes.COMPOSITIONS.value].append(gv_node.pipe('json', quiet=True).decode())
elif node.componentType in self.psyneulink_mechanism_classes:
if orphan_nodes is None:
Expand Down

0 comments on commit 90cfdf5

Please sign in to comment.