We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0bf241 commit 2c0046fCopy full SHA for 2c0046f
pydra/engine/core.py
@@ -215,7 +215,7 @@ def __setstate__(self, state):
215
state["input_spec"] = cp.loads(state["input_spec"])
216
if "output_spec" in state:
217
state["output_spec"] = cp.loads(state["output_spec"])
218
- input_spec = state.get("input_spec", self.input_spec)
+ input_spec = state.get("input_spec", getattr(self, "input_spec", None))
219
state["inputs"] = make_klass(input_spec)(**state["inputs"])
220
self.__dict__.update(state)
221
0 commit comments