Skip to content

Commit dc68922

Browse files
authored
Merge pull request #1964 from effigies/fix/sphinx_graph
FIX: Return simple filename from export_graph if simple form is requested
2 parents d061186 + 21d9ed0 commit dc68922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,8 @@ def export_graph(graph_in, base_dir=None, show=False, use_execgraph=False,
10411041

10421042
if format != 'dot':
10431043
outfname += '.%s' % format
1044-
return outfname
1044+
simplefname += '.%s' % format
1045+
return simplefname if simple_form else outfname
10451046

10461047

10471048
def format_dot(dotfilename, format=None):

0 commit comments

Comments
 (0)