33from enum import Enum
44import attrs
55from pydra .engine import lazy
6- from pydra .utils .general import attrs_values
6+ from pydra .utils .general import task_dict
77from pydra .utils .typing import is_lazy
88from pydra .engine .state import State , add_name_splitter , add_name_combiner
99
@@ -87,7 +87,7 @@ def inputs(self) -> Inputs:
8787
8888 @property
8989 def input_names (self ) -> list [str ]:
90- return list (attrs_values (self ._task ).keys ())
90+ return list (task_dict (self ._task ).keys ())
9191
9292 @property
9393 def state (self ):
@@ -98,7 +98,7 @@ def state(self):
9898
9999 @property
100100 def input_values (self ) -> tuple [tuple [str , ty .Any ]]:
101- return tuple (attrs_values (self ._task ).items ())
101+ return tuple (task_dict (self ._task ).items ())
102102
103103 @property
104104 def state_values (self ) -> dict [str , ty .Any ]:
@@ -110,7 +110,7 @@ def state_values(self) -> dict[str, ty.Any]:
110110 dict[str, Any]
111111 The values of the task
112112 """
113- return {f"{ self .name } .{ n } " : v for n , v in attrs_values (self ._task ).items ()}
113+ return {f"{ self .name } .{ n } " : v for n , v in task_dict (self ._task ).items ()}
114114
115115 @property
116116 def lzout (self ) -> OutputType :
@@ -129,7 +129,7 @@ def lzout(self) -> OutputType:
129129 outputs = self .inputs .Outputs (** lazy_fields )
130130
131131 outpt : lazy .LazyOutField
132- for outpt in attrs_values (outputs ).values ():
132+ for outpt in task_dict (outputs ).values ():
133133 # Assign the current node to the lazy fields so they can access the state
134134 outpt ._node = self
135135 # If the node has a non-empty state, wrap the type of the lazy field in
0 commit comments