From d8025d9aa2aed6b4d8d77a6209e46b00f59e4265 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 21 Mar 2023 18:48:52 +0000 Subject: The mean deaults to 'N/A' for phenotypes The previous code caused an error when the mean was N/A (when trying to take the float() of it) --- wqflask/wqflask/correlation/show_corr_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 06db20c2..5fa65594 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -242,7 +242,7 @@ def populate_table(dataset_metadata, target_dataset, this_dataset, corr_results, results_dict['description'] = html.escape( target_trait['description'].strip(), quote=True) - if target_trait["mean"]: + if target_trait["mean"] != "N/A": results_dict['mean'] = f"{float(target_trait['mean']):.3f}" results_dict['lrs_location'] = target_trait['lrs_location'] -- cgit v1.2.3