Fix Wilcoxon NaN values (#4402)

This commit is contained in:
Peter Hedenskog 2025-01-16 09:32:34 +01:00 committed by GitHub
parent 1bbc82e14d
commit e20fe9ddc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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)}

View File

@ -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':