From d5a094a3ec491435fa280b3362a7f101c8f7fa83 Mon Sep 17 00:00:00 2001 From: Marcel Loose <loose@astron.nl> Date: Fri, 27 Jul 2012 14:31:25 +0000 Subject: [PATCH] Task #2942: We also need to store self.outputs in the statefile. Otherwise we won't get the correct outputs back for a skipped recipe. --- CEP/Pipeline/framework/lofarpipe/support/stateful.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CEP/Pipeline/framework/lofarpipe/support/stateful.py b/CEP/Pipeline/framework/lofarpipe/support/stateful.py index 5bf344f215a..fb4912252d2 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 -- GitLab