From 1f08d0fbf673210251f6d7d43d729a5d4407a63e Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 11 Dec 2015 17:23:36 +0000 Subject: [PATCH] verbose option for compareTables, new option to filter (now before and after normalizing) --- lib/damask/test/test.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/damask/test/test.py b/lib/damask/test/test.py index 10c12c1a8..8fa2fcf9b 100644 --- a/lib/damask/test/test.py +++ b/lib/damask/test/test.py @@ -411,7 +411,8 @@ class Test(): columns = [None], # list of list of column labels (per file) rtol = 1e-5, atol = 1e-8, - threshold = -1.0, + preFilter = -1.0, + postFilter = -1.0, debug = False): ''' @@ -449,22 +450,29 @@ class Test(): data = [] for table,labels in zip(tables,columns): table.data_readArray(labels) - data.append(table.data) + data.append(np.where(np.abs(table.data)0.0, maximum, 1) + maximum = np.where(maximum >0.0, maximum, 1) # do not devide by zero for empty columns for i in xrange(len(data)): data[i] /= maximum mask = np.zeros_like(table.data,dtype='bool') for table in data: - mask |= np.where(np.abs(table)