Skip to content

Commit 16e9016

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7bae1de commit 16e9016

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

pydra/engine/submitter.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ async def submit_from_call(self, runnable, rerun):
7676
await self.expand_runnable(runnable, wait=True)
7777
return True
7878

79-
8079
async def expand_runnable(self, runnable, wait=False, rerun=False):
8180
"""
8281
This coroutine handles state expansion.
@@ -117,10 +116,7 @@ async def expand_runnable(self, runnable, wait=False, rerun=False):
117116
asyncio.create_task(load_and_run_async(task_pkl, sidx, self, rerun))
118117
)
119118
else:
120-
futures.add(
121-
self.worker.run_el((task_pkl, sidx, runnable), rerun=rerun)
122-
)
123-
119+
futures.add(self.worker.run_el((task_pkl, sidx, runnable), rerun=rerun))
124120

125121
if wait and futures:
126122
# if wait is True, we are at the end of the graph / state expansion.
@@ -130,7 +126,6 @@ async def expand_runnable(self, runnable, wait=False, rerun=False):
130126
# pass along futures to be awaited independently
131127
return futures
132128

133-
134129
async def expand_workflow(self, wf, rerun=False):
135130
"""
136131
Expand and execute a stateless :class:`~pydra.engine.core.Workflow`.
@@ -278,11 +273,8 @@ def is_runnable(graph, obj):
278273
return True
279274

280275

281-
282276
async def prepare_runnable_with_state(runnable):
283277
runnable.state.prepare_states(runnable.inputs, cont_dim=runnable.cont_dim)
284278
runnable.state.prepare_inputs()
285-
logger.debug(
286-
f"Expanding {runnable} into {len(runnable.state.states_val)} states"
287-
)
288-
return runnable.pickle_task()
279+
logger.debug(f"Expanding {runnable} into {len(runnable.state.states_val)} states")
280+
return runnable.pickle_task()

pydra/engine/workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,5 +883,5 @@ def close(self):
883883
"cf": ConcurrentFuturesWorker,
884884
"slurm": SlurmWorker,
885885
"dask": DaskWorker,
886-
"sge": SGEWorker
886+
"sge": SGEWorker,
887887
}

0 commit comments

Comments
 (0)