We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125a0a5 commit 9a411dbCopy full SHA for 9a411db
pydra/compose/python.py
@@ -2,7 +2,7 @@
2
import inspect
3
from typing import dataclass_transform
4
import attrs
5
-from pydra.utils.general import task_fields, attrs_values
+from pydra.utils.general import task_fields, task_dict
6
from pydra.compose import base
7
from pydra.compose.base import (
8
ensure_field_objects,
@@ -231,7 +231,7 @@ class PythonTask(base.Task[PythonOutputsType]):
231
232
def _run(self, job: "Job[PythonTask]", rerun: bool = True) -> None:
233
# Prepare the inputs to the function
234
- inputs = attrs_values(self)
+ inputs = task_dict(self)
235
del inputs["function"]
236
# Run the actual function
237
returned = self.function(**inputs)
0 commit comments