From 51e1ee41d64247215df39d07739ec29af232eb3a Mon Sep 17 00:00:00 2001 From: Philip ABBET <philip.abbet@idiap.ch> Date: Wed, 27 Sep 2017 09:50:46 +0200 Subject: [PATCH] Fix 3e8e65d for analyzers --- beat/core/execution/base.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/beat/core/execution/base.py b/beat/core/execution/base.py index a8610f5b..b5cbe56f 100755 --- a/beat/core/execution/base.py +++ b/beat/core/execution/base.py @@ -187,16 +187,17 @@ class BaseExecutor(object): if len(self.data['inputs']) != len(self.algorithm.input_map): self.errors.append("The number of inputs of the algorithm doesn't correspond") - if len(self.data['outputs']) != len(self.algorithm.output_map): + if self.data.has_key('outputs') and (len(self.data['outputs']) != len(self.algorithm.output_map)): self.errors.append("The number of outputs of the algorithm doesn't correspond") for name in self.data['inputs'].keys(): if name not in self.algorithm.input_map.keys(): self.errors.append("The input '%s' doesn't exist in the algorithm" % name) - for name in self.data['outputs'].keys(): - if name not in self.algorithm.output_map.keys(): - self.errors.append("The output '%s' doesn't exist in the algorithm" % name) + if self.data.has_key('outputs'): + for name in self.data['outputs'].keys(): + if name not in self.algorithm.output_map.keys(): + self.errors.append("The output '%s' doesn't exist in the algorithm" % name) if self.errors: return -- GitLab