From 4bc3054570b1869e484d5c61ea1f64f684a654dc Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 4 Dec 2020 14:01:31 -0600 Subject: Limited the mean to 3 digits on correlation page --- wqflask/wqflask/correlation/show_corr_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index 51aa1622..0c1cea0e 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -498,7 +498,7 @@ def generate_corr_json(corr_results, this_trait, dataset, target_dataset, for_ap if bool(trait.description_display): results_dict['description'] = trait.description_display if bool(trait.mean): - results_dict['mean'] = float(trait.mean) + results_dict['mean'] = f"{float(trait.mean):.3f}" if trait.LRS_score_repr != "N/A": results_dict['lrs_score'] = f"{float(trait.LRS_score_repr):.1f}" results_dict['lrs_location'] = trait.LRS_location_repr -- cgit v1.2.3