File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1212 extract_fields_from_class ,
1313)
1414from pydra .utils .general import attrs_values
15- from pydra .utils .typing import StateArray
15+ from pydra .utils .typing import StateArray , is_lazy
1616
1717if ty .TYPE_CHECKING :
1818 from pydra .engine .workflow import Workflow
@@ -334,11 +334,10 @@ def _from_job(cls, job: "Job[WorkflowTask]") -> ty.Self:
334334 values = {}
335335 lazy_field : LazyOutField
336336 for name , lazy_field in attrs_values (workflow .outputs ).items ():
337- val_out = (
338- lazy_field ._get_value (workflow = workflow , graph = exec_graph )
339- if isinstance (lazy_field , LazyOutField )
340- else lazy_field
341- )
337+ if is_lazy (lazy_field ):
338+ val_out = lazy_field ._get_value (workflow = workflow , graph = exec_graph )
339+ else :
340+ val_out = lazy_field # handle non-lazy inputs that are passed through
342341 if isinstance (val_out , StateArray ):
343342 val_out = list (val_out ) # implicitly combine state arrays
344343 values [name ] = val_out
You can’t perform that action at this time.
0 commit comments