From 3e8f182b3478590c13046a2892480156315683eb Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 14 Feb 2018 16:54:44 +0000 Subject: Added empty collection error page to git, since it wasn't on production --- wqflask/wqflask/correlation/show_corr_results.py | 17 ----------------- wqflask/wqflask/templates/empty_collection.html | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 wqflask/wqflask/templates/empty_collection.html (limited to 'wqflask') diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py index c072cf82..4d7fea61 100644 --- a/wqflask/wqflask/correlation/show_corr_results.py +++ b/wqflask/wqflask/correlation/show_corr_results.py @@ -167,26 +167,9 @@ class CorrelationResults(object): self.sample_data = {} self.corr_type = start_vars['corr_type'] self.corr_method = start_vars['corr_sample_method'] -<<<<<<< HEAD - if 'min_expr' in start_vars: - if start_vars['min_expr'] != "": - self.min_expr = float(start_vars['min_expr']) - else: - self.min_expr = None - logger.debug("P RANGE:", start_vars['p_range_lower']) - try: - self.p_range_lower = float(start_vars['p_range_lower']) - except: - self.p_range_lower = -1.00 - try: - self.p_range_upper = float(start_vars['p_range_upper']) - except: - self.p_range_upper = 1.00 -======= self.min_expr = get_float(start_vars,'min_expr') self.p_range_lower = get_float(start_vars,'p_range_lower',-1.0) self.p_range_upper = get_float(start_vars,'p_range_upper',1.0) ->>>>>>> f44a18ccd4c45ab7fd2179c9000d1bf836e3f654 if ('loc_chr' in start_vars and 'min_loc_mb' in start_vars and diff --git a/wqflask/wqflask/templates/empty_collection.html b/wqflask/wqflask/templates/empty_collection.html new file mode 100644 index 00000000..3f2b3786 --- /dev/null +++ b/wqflask/wqflask/templates/empty_collection.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% block title %}{{ tool }}{% endblock %} +{% block content %} + + {{ header("Error") }} + +
+ +

You must select at least one trait to use the {{ tool }}.

+
+ + + + +{% endblock %} -- cgit v1.2.3