diff options
author | Frederick Muriuki Muriithi | 2022-01-12 11:20:32 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-01-12 11:20:32 +0300 |
commit | 794db6e2f4fbb91303e673afd8308e3945e2bc4e (patch) | |
tree | 289f19535a5571b411bbf3111d6725c328ce0349 /gn3 | |
parent | e6339bea5f22a6b331979f15a78d94c2c61c285a (diff) | |
download | genenetwork3-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.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/computations/correlations.py | 3 |
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 |