From 794db6e2f4fbb91303e673afd8308e3945e2bc4e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 12 Jan 2022 11:20:32 +0300 Subject: 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. --- gn3/computations/correlations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gn3/computations') 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 -- cgit v1.2.3