aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorBonfaceKilz2022-01-05 19:31:43 +0300
committerGitHub2022-01-05 19:31:43 +0300
commiteda15b5ea1bf773d69ea750a946d1cb61f5d3509 (patch)
treec410acc04debdc0d221db17b4a4515e595c2a162 /gn3/computations
parentbbd088c6aa26549d2e6b063c8d99492cb6fc33f5 (diff)
parenta72195b4e77d221fc74810b460bfec8940755a8f (diff)
downloadgenenetwork3-eda15b5ea1bf773d69ea750a946d1cb61f5d3509.tar.gz
Merge pull request #64 from jgarte/type-hint-normalize-values
Adds type hint for normalize_values function
Diffstat (limited to 'gn3/computations')
-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 1b4b3a4..09288c5 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
@@ -39,7 +40,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