aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-12-04 14:01:31 -0600
committerzsloan2020-12-04 14:01:31 -0600
commit4bc3054570b1869e484d5c61ea1f64f684a654dc (patch)
tree8bab0ea5d667b3d4559713a25b3e6e7eb73697f4 /wqflask
parent5a00b4a6bc830d2fdc6812cc5afdf76ed4818b13 (diff)
downloadgenenetwork2-4bc3054570b1869e484d5c61ea1f64f684a654dc.tar.gz
Limited the mean to 3 digits on correlation page
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py2
1 files changed, 1 insertions, 1 deletions
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