aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/correlation_gn3_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/correlation_gn3_api.py b/wqflask/wqflask/correlation/correlation_gn3_api.py
index a18bceaf..1e3a40f2 100644
--- a/wqflask/wqflask/correlation/correlation_gn3_api.py
+++ b/wqflask/wqflask/correlation/correlation_gn3_api.py
@@ -65,7 +65,7 @@ def process_samples(start_vars, sample_names, excluded_samples=None):
excluded_samples = ()
sample_vals_dict = json.loads(start_vars["sample_vals"])
for sample in sample_names:
- if sample not in excluded_samples:
+ if sample not in excluded_samples and sample in sample_vals_dict:
val = sample_vals_dict[sample]
if not val.strip().lower() == "x":
sample_data[str(sample)] = float(val)