Fix Wilcoxon NaN values (#4402)
This commit is contained in:
parent
1bbc82e14d
commit
e20fe9ddc1
|
|
@ -144,7 +144,7 @@ table
|
|||
td
|
||||
a(href=createGraphLink(groupName, metricName))
|
||||
b #{groupName + '.' + metricName}
|
||||
if values.statisticalTestU === "N/A" || values.statisticalTestU === "Datasets are identical" || values.statisticalTestU === "No variability"
|
||||
if values.statisticalTestU === "N/A" || values.statisticalTestU === "Datasets are identical" || values.statisticalTestU === "No variability" || values.statisticalTestU === "Datasets have different lengths"
|
||||
td #{values.statisticalTestU}
|
||||
else
|
||||
td #{h.decimals(values.statisticalTestU)}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ def perform_test(test_type, baseline, current, **kwargs):
|
|||
return None, "Datasets are identical"
|
||||
else:
|
||||
return None, "No variability"
|
||||
if (len(set(baseline)) != len(set(current))) and test_type == 'wilcoxon':
|
||||
if (len(baseline) != len(current)) and test_type == 'wilcoxon':
|
||||
return None, "Datasets have different lengths"
|
||||
|
||||
if test_type == 'wilcoxon':
|
||||
|
|
|
|||
Loading…
Reference in New Issue