2020
2121
2222if ty .TYPE_CHECKING :
23- from .specs import TaskDef , Result , WorkflowOutputs , WorkflowDef
24- from .core import Task
23+ from pydra . engine .specs import TaskDef , Result , WorkflowOutputs , WorkflowDef
24+ from pydra . engine .core import Task
2525 from pydra .design .base import Field
2626 from pydra .engine .lazy import LazyField
2727
@@ -41,7 +41,7 @@ def plot_workflow(
4141 lazy : ty .Sequence [str ] | ty .Set [str ] = (),
4242):
4343 """creating a graph - dotfile and optionally exporting to other formats"""
44- from .core import Workflow
44+ from pydra . engine .core import Workflow
4545
4646 # Create output directory
4747 out_dir .mkdir (parents = True , exist_ok = True )
@@ -117,7 +117,7 @@ def fields_dict(definition: "type[TaskDef] | TaskDef") -> dict[str, "Field"]:
117117 return {f .name : f for f in list_fields (definition )}
118118
119119
120- # from .specs import MultiInputFile, MultiInputObj, MultiOutputObj, MultiOutputFile
120+ # from pydra.engine .specs import MultiInputFile, MultiInputObj, MultiOutputObj, MultiOutputFile
121121
122122
123123def from_list_if_single (obj : ty .Any ) -> ty .Any :
@@ -252,7 +252,7 @@ def copyfile_workflow(
252252 wf_path : os .PathLike , outputs : "WorkflowOutputs"
253253) -> "WorkflowOutputs" :
254254 """if file in the wf results, the file will be copied to the workflow directory"""
255- from .helpers_file import copy_nested_files
255+ from pydra . engine .helpers_file import copy_nested_files
256256
257257 for field in attrs_fields (outputs ):
258258 value = getattr (outputs , field .name )
@@ -278,7 +278,7 @@ def gather_runtime_info(fname):
278278 A runtime object containing the collected information.
279279
280280 """
281- from .specs import Runtime
281+ from pydra . engine .specs import Runtime
282282
283283 runtime = Runtime (rss_peak_gb = None , vms_peak_gb = None , cpu_peak_percent = None )
284284
@@ -526,7 +526,7 @@ def load_and_run(task_pkl: Path, rerun: bool = False) -> Path:
526526 The path to the pickled result file
527527 """
528528
529- from .specs import Result
529+ from pydra . engine .specs import Result
530530
531531 try :
532532 task : Task [DefType ] = load_task (task_pkl = task_pkl )
0 commit comments