diff options
author | Munyoki Kilyungi | 2023-09-05 18:06:01 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-09-05 18:31:39 +0300 |
commit | 061c88d0973a324652d217706639f3dbc7f3da32 (patch) | |
tree | 95edf5cf639f2d7cf0b84c2e978e011f502d18cf /wqflask | |
parent | 5ebfcb223fe223de68c90dbac4116cf8384391c4 (diff) | |
download | genenetwork2-061c88d0973a324652d217706639f3dbc7f3da32.tar.gz |
Replace scipy.isnan with numpy.isnan
* wqflask/wqflask/api/correlation.py (get_sample_r_and_p_values):
Replace scipy.isnan with numpy.isnan. scipy.isnan is deprecated and
will be removed in SciPy 2.0.0
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/api/correlation.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/api/correlation.py b/wqflask/wqflask/api/correlation.py index f3a06e19..f3910340 100644 --- a/wqflask/wqflask/api/correlation.py +++ b/wqflask/wqflask/api/correlation.py @@ -1,5 +1,6 @@ import collections import scipy +import numpy from base import data_set from base.trait import create_trait, retrieve_sample_data @@ -183,7 +184,7 @@ def get_sample_r_and_p_values(this_trait, this_dataset, target_vals, target_data this_trait_vals, shared_target_vals) if num_overlap > 5: - if scipy.isnan(sample_r): + if numpy.isnan(sample_r): return None else: return [sample_r, sample_p, num_overlap] |