From b09b28d4ab243a5193b8004aee7e9117418f63ac Mon Sep 17 00:00:00 2001 From: George Stavrinos Date: Tue, 13 Mar 2018 14:11:51 +0200 Subject: [PATCH] Increased stability by skipping invalid lines in the reports --- src/report_generator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/report_generator.py b/src/report_generator.py index cdc80dd..a346082 100755 --- a/src/report_generator.py +++ b/src/report_generator.py @@ -52,7 +52,7 @@ def generateReport(msg): if found_file: files.sort() for f in files: - content = np.genfromtxt(path+f, delimiter=',', dtype='unicode', skip_header=1) + content = np.genfromtxt(path+f, delimiter=',', dtype='unicode', skip_header=1, invalid_raise=False) sp = f.rsplit("_") annotation = sp[3] repetition = sp[4] @@ -78,7 +78,7 @@ def generateReport(msg): if found_file: files.sort() for f in files: - content = np.genfromtxt(path+f, delimiter=',', dtype='unicode', skip_header=1) + content = np.genfromtxt(path+f, delimiter=',', dtype='unicode', skip_header=1, invalid_raise=False) sp = f.rsplit("_") annotation = sp[3] repetition = sp[4] @@ -103,7 +103,7 @@ def generateReport(msg): content = [] filtered = [] title = [] - content = np.genfromtxt(path+f, delimiter=',', dtype='unicode', skip_header=1) + content = np.genfromtxt(path+f, delimiter=',', dtype='unicode', skip_header=1, invalid_raise=False) sp = f.rsplit("_") annotation = sp[3] repetition = sp[4] @@ -134,7 +134,7 @@ def generateReport(msg): if found_file: files.sort() for f in files: - content = np.genfromtxt(path+f, delimiter=',', dtype='unicode', skip_header=1) + content = np.genfromtxt(path+f, delimiter=',', dtype='unicode', skip_header=1, invalid_raise=False) sp = f.rsplit("_") annotation = sp[3] repetition = sp[4]