aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-01-12 11:20:32 +0300
committerFrederick Muriuki Muriithi2022-01-12 11:20:32 +0300
commit794db6e2f4fbb91303e673afd8308e3945e2bc4e (patch)
tree289f19535a5571b411bbf3111d6725c328ce0349
parente6339bea5f22a6b331979f15a78d94c2c61c285a (diff)
downloadgenenetwork3-794db6e2f4fbb91303e673afd8308e3945e2bc4e.tar.gz
Update return type. Remove duplicate import.
The function is a generator function, since it uses a `yield` statement, and thus returns a generator object, that contains a tuple object. This fixes that. We also remove a duplicate import.
-rw-r--r--gn3/computations/correlations.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index 09288c5..e30d497 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -3,7 +3,6 @@ import math
import multiprocessing
from contextlib import closing
-from typing import Generator
from typing import List
from typing import Tuple
from typing import Optional
@@ -40,7 +39,7 @@ def map_shared_keys_to_values(target_sample_keys: List,
return target_dataset_data
-def normalize_values(a_values: List, b_values: List) -> Tuple[Generator, Generator]:
+def normalize_values(a_values: List, b_values: List) -> Generator:
"""
:param a_values: list of primary strain values
:param b_values: a list of target strain values