Skip to content

Commit 2e04ffc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 01718b3 commit 2e04ffc

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

pydra/engine/core.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,33 +1189,27 @@ def _collect_outputs(self):
11891189
)
11901190
return attr.evolve(output, **output_wf)
11911191

1192-
def create_dotfile(self, type="simple", export=None, name=None, output_dir = None):
1192+
def create_dotfile(self, type="simple", export=None, name=None, output_dir=None):
11931193
"""creating a graph - dotfile and optionally exporting to other formats"""
11941194
outdir = output_dir if output_dir is not None else self.cache_dir
11951195
if not name:
11961196
name = f"graph_{self.name}"
11971197
if type == "simple":
11981198
for task in self.graph.nodes:
11991199
self.create_connections(task)
1200-
dotfile = self.graph.create_dotfile_simple(
1201-
outdir=outdir, name=name
1202-
)
1200+
dotfile = self.graph.create_dotfile_simple(outdir=outdir, name=name)
12031201
elif type == "nested":
12041202
for task in self.graph.nodes:
12051203
self.create_connections(task)
1206-
dotfile = self.graph.create_dotfile_nested(
1207-
outdir=outdir, name=name
1208-
)
1204+
dotfile = self.graph.create_dotfile_nested(outdir=outdir, name=name)
12091205
elif type == "detailed":
12101206
# create connections with detailed=True
12111207
for task in self.graph.nodes:
12121208
self.create_connections(task, detailed=True)
12131209
# adding wf outputs
12141210
for (wf_out, lf) in self._connections:
12151211
self.graph.add_edges_description((self.name, wf_out, lf.name, lf.field))
1216-
dotfile = self.graph.create_dotfile_detailed(
1217-
outdir=outdir, name=name
1218-
)
1212+
dotfile = self.graph.create_dotfile_detailed(outdir=outdir, name=name)
12191213
else:
12201214
raise Exception(
12211215
f"type of the graph can be simple, detailed or nested, "

0 commit comments

Comments
 (0)