Skip to content

Commit 3677954

Browse files
committed
remove redundant imports
1 parent 4033c0d commit 3677954

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pydra/engine/run_pickled.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pickle
2-
import pydra
32
import sys
43

54

pydra/engine/workers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ def __init__(self, subtype=None, **kwargs):
901901
logger.critical("Please install psij.")
902902
raise
903903
logger.debug("Initialize PsijWorker")
904+
self.psij = psij
904905
self.subtype = subtype
905906

906907
def run_el(self, interface, rerun=False, **kwargs):
@@ -920,12 +921,10 @@ def make_job(self, spec, attributes):
920921
return job
921922

922923
async def exec_psij(self, runnable, rerun=False):
923-
import psij
924924
import pickle
925925
import os
926926

927-
self.psij = psij
928-
jex = psij.JobExecutor.get_instance(self.subtype)
927+
jex = self.psij.JobExecutor.get_instance(self.subtype)
929928
absolute_path = os.path.dirname(__file__)
930929

931930
if isinstance(runnable, TaskBase):

0 commit comments

Comments
 (0)