Skip to content

Commit bfb918f

Browse files
committed
Merge pull request #1358 from polosecki/fix_write_dot
Fixed write_dot error for networkx>=1.11 in nipype/pipeline/utils.py
2 parents a8956d2 + 9c5baab commit bfb918f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ def export_graph(graph_in, base_dir=None, show=False, use_execgraph=False,
10211021
suffix='.dot',
10221022
use_ext=False,
10231023
newpath=base_dir)
1024-
nx.write_dot(pklgraph, outfname)
1024+
nx.drawing.nx_pydot.write_dot(pklgraph, outfname)
10251025
logger.info('Creating dot file: %s' % outfname)
10261026
cmd = 'dot -T%s -O %s' % (format, outfname)
10271027
res = CommandLine(cmd, terminal_output='allatonce').run()

0 commit comments

Comments
 (0)