From 2557fb9765d8bdbb236d3b0e3b3d6bed486839f3 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Wed, 15 Aug 2018 12:23:49 +0100 Subject: replaces in with explicit test (#141) closes #139 --- Wrappers/Python/ccpi/framework.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Wrappers/Python/ccpi/framework.py b/Wrappers/Python/ccpi/framework.py index 485e96b..d82010b 100644 --- a/Wrappers/Python/ccpi/framework.py +++ b/Wrappers/Python/ccpi/framework.py @@ -863,8 +863,9 @@ class DataProcessor(object): raise NotImplementedError('Implement basic checks for input DataContainer') def get_output(self): - if None in self.__dict__.values(): - raise ValueError('Not all parameters have been passed') + for k,v in self.__dict__.items(): + if v is None: + raise ValueError('Key {0} is None'.format(k)) shouldRun = False if self.runTime == -1: shouldRun = True -- cgit v1.2.3