We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60b062d commit 7894d0bCopy full SHA for 7894d0b
pydra/engine/core.py
@@ -217,7 +217,9 @@ def __setstate__(self, state):
217
state["input_spec"] = cp.loads(state["input_spec"])
218
if "output_spec" in state:
219
state["output_spec"] = cp.loads(state["output_spec"])
220
- input_spec = state.get("input_spec", getattr(self, "input_spec", None))
+ input_spec = state.get("input_spec")
221
+ if input_spec is None: # If it is not saved, it should be a class attribute
222
+ input_spec = self.input_spec
223
state["inputs"] = make_klass(input_spec)(**state["inputs"])
224
self.__dict__.update(state)
225
0 commit comments