aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/correlation/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/correlation/exceptions.py')
-rw-r--r--wqflask/wqflask/correlation/exceptions.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/wqflask/wqflask/correlation/exceptions.py b/wqflask/wqflask/correlation/exceptions.py
deleted file mode 100644
index f4e2b72b..00000000
--- a/wqflask/wqflask/correlation/exceptions.py
+++ /dev/null
@@ -1,16 +0,0 @@
-"""Correlation-Specific Exceptions"""
-
-class WrongCorrelationType(Exception):
- """Raised when a correlation is requested for incompatible datasets."""
-
- def __init__(self, trait, target_dataset, corr_method):
- corr_method = {
- "lit": "Literature",
- "tissue": "Tissue"
- }[corr_method]
- message = (
- f"It is not possible to compute the '{corr_method}' correlations "
- f"between trait '{trait.name}' and the data in the "
- f"'{target_dataset.fullname}' dataset. "
- "Please try again after selecting another type of correlation.")
- super().__init__(message)