diff --git a/CEP/Pipeline/framework/lofarpipe/support/stateful.py b/CEP/Pipeline/framework/lofarpipe/support/stateful.py index 5bf344f215a7ce686369329700ca99e72dfc022c..fb4912252d2126c33ef5c69bcbcfd8039e202215 100644 --- a/CEP/Pipeline/framework/lofarpipe/support/stateful.py +++ b/CEP/Pipeline/framework/lofarpipe/support/stateful.py @@ -67,7 +67,7 @@ class StatefulRecipe(BaseRecipe): 'statefile' ), 'w') - state = [self.inputs, self.state] + state = [self.inputs, self.outputs, self.state] cPickle.dump(state, statefile) def go(self): @@ -78,7 +78,7 @@ class StatefulRecipe(BaseRecipe): ) try: statefile = open(statefile, 'r') - inputs, self.state = cPickle.load(statefile) + inputs, self.outputs, self.state = cPickle.load(statefile) statefile.close() # What's the correct thing to do if inputs differ from the saved