Skip to content

Commit

Permalink
FIX: Allow input_spec to be a spec
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Mar 2, 2021
1 parent 0bf450a commit 8442d5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pydra/engine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def __init__(
self.name = name
if not self.input_spec:
raise Exception("No input_spec in class: %s" % self.__class__.__name__)
klass = make_klass(self.input_spec)
klass = self.input_spec
if isinstance(klass, SpecInfo):
klass = make_klass(klass)

self.inputs = klass(
**{
Expand Down

0 comments on commit 8442d5f

Please sign in to comment.