From 0615471c45c40ca7c5e53d13a55bc77499c914ac Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Tue, 25 Jan 2022 23:40:51 +0300 Subject: fix for dcor and LOD rounding --- wqflask/wqflask/ctl/gn3_ctl_analysis.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wqflask/wqflask/ctl/gn3_ctl_analysis.py b/wqflask/wqflask/ctl/gn3_ctl_analysis.py index 033b7704..f2873ac0 100644 --- a/wqflask/wqflask/ctl/gn3_ctl_analysis.py +++ b/wqflask/wqflask/ctl/gn3_ctl_analysis.py @@ -20,7 +20,13 @@ def process_significance_data(significant_data): for col in col_names: for (index, col_data) in enumerate(significant_data[col]): - dataset_rows[index].append(col_data) + + if col in ["dcor", "LOD"]: + + dataset_rows[index].append(round(col_data, 2)) + else: + + dataset_rows[index].append(col_data) return { "col_names": col_names, -- cgit v1.2.3