Skip to content

Commit

Permalink
replaced type validation with TypeCoercer converter, which coerces an…
Browse files Browse the repository at this point in the history
…d checks nested type structures in one pass
  • Loading branch information
tclose committed Jun 27, 2023
1 parent 2ca41e3 commit dc619ff
Show file tree
Hide file tree
Showing 5 changed files with 582 additions and 418 deletions.
6 changes: 4 additions & 2 deletions pydra/engine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
RuntimeSpec,
Result,
SpecInfo,
LazyIn,
LazyOut,
LazyField,
TaskHook,
attr_fields,
Expand Down Expand Up @@ -225,7 +227,7 @@ def __setstate__(self, state):

def __getattr__(self, name):
if name == "lzout": # lazy output
return LazyField(self, "output")
return LazyOut(self)
return self.__getattribute__(name)

def help(self, returnhelp=False):
Expand Down Expand Up @@ -932,7 +934,7 @@ def __init__(

def __getattr__(self, name):
if name == "lzin":
return LazyField(self, "input")
return LazyIn(self)
if name == "lzout":
return super().__getattr__(name)
if name in self.name2obj:
Expand Down
Loading

0 comments on commit dc619ff

Please sign in to comment.