Workflow
constructor raises TypeError
when input_spec
is an instance of SpecInfo
#572
Labels
bug
Something isn't working
The documentation of the
Workflow
constructor says thatinput_spec
can be a list of strings, aSpecInfo
, or aBaseSpec
instance:pydra/pydra/engine/core.py
Line 807 in 219c721
However, when providing a
SpecInfo
I get aTypeError: unhashable type: 'SpecInfo'
.Looking at the code, it seems like this case isn't handled properly such that we end up iterating over the
SpecInfo
instance (line 860), triggering the error described above:pydra/pydra/engine/core.py
Lines 843 to 863 in 219c721
It could be that
SpecInfo
was supposed to inherit fromBaseSpec
, but it doesn't seem to be the case atm:pydra/pydra/engine/specs.py
Line 65 in 219c721
The text was updated successfully, but these errors were encountered: