aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/correlation/rust_correlation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py
index 8e8cd463..5b39c871 100644
--- a/wqflask/wqflask/correlation/rust_correlation.py
+++ b/wqflask/wqflask/correlation/rust_correlation.py
@@ -247,6 +247,9 @@ def __compute_sample_corr__(
r = ",".join(lts)
target_data.append(r)
+ if len(target_data) == 0:
+ return {}
+
return run_correlation(
target_data, list(sample_data.values()), method, ",", corr_type,
n_top)