aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgart2021-12-14 05:41:54 -0500
committerGitHub2021-12-14 05:41:54 -0500
commita72195b4e77d221fc74810b460bfec8940755a8f (patch)
treeb81cdb644b13f19dc985282b9366312a4883a09c
parent4f8042a67cab94384bb30e73ec5139fdd3a4c8b5 (diff)
downloadgenenetwork3-a72195b4e77d221fc74810b460bfec8940755a8f.tar.gz
Adds type hint for normalize_values function
-rw-r--r--gn3/computations/correlations.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index d38946e..37c70e9 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -3,6 +3,7 @@ import math
import multiprocessing
from contextlib import closing
+from typing import Generator
from typing import List
from typing import Tuple
from typing import Optional
@@ -38,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):
+def normalize_values(a_values: List, b_values: List) -> Tuple[Generator, Generator]:
"""
:param a_values: list of primary strain values
:param b_values: a list of target strain values