diff --git a/ipet/parsing/StatisticReader_TableReader.py b/ipet/parsing/StatisticReader_TableReader.py index afb800f..e59b147 100644 --- a/ipet/parsing/StatisticReader_TableReader.py +++ b/ipet/parsing/StatisticReader_TableReader.py @@ -96,8 +96,11 @@ def extractStatistic(self, line): else: # treat vectors (tables with only one data column) datakeys = ['_'.join((self.tableid, rowname))] - # TODO This works, why is eclipse complaining? - data = [self.convertToFloat(misc.numericExpression.search(line, colonidx + 1).group(0))] + finding = misc.numericExpression.search(line, colonidx + 1) + if finding is not None: + data = [self.convertToFloat(finding.group(0))] + else : + data = [] # determine minimum length (necessary if more headers were recognized than actual available data) minlen = min(len(datakeys), len(data)) diff --git a/scripts/ipet-evaluate b/scripts/ipet-evaluate old mode 100644 new mode 100755 diff --git a/scripts/ipet-parse b/scripts/ipet-parse old mode 100644 new mode 100755 index 95ce423..a1c9f69 --- a/scripts/ipet-parse +++ b/scripts/ipet-parse @@ -117,6 +117,7 @@ def process_one_outfiles_group(task : tuple): outfiles, arguments = task experiment = setup_experiment(arguments) + logger = logging.getLogger() logger.info("Start parsing process of outfile(s) {}".format(", ".join(outfiles))) for o in outfiles: