diff options
author | Alexander_Kabui | 2022-06-22 12:39:29 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-06-29 17:41:16 +0300 |
commit | 5c0dceed7c99b435fc0471e763884737e8b4547c (patch) | |
tree | b4298bd28b7d51768d30a48d830d56e8f5101b13 | |
parent | 300867779357f3c2c74d3bbdc6a743ca37136d00 (diff) | |
download | genenetwork3-5c0dceed7c99b435fc0471e763884737e8b4547c.tar.gz |
fix issues
-rw-r--r-- | gn3/computations/rust_correlation.py | 7 | ||||
-rw-r--r-- | tests/unit/computations/test_rust_correlation.py | 4 |
2 files changed, 3 insertions, 8 deletions
diff --git a/gn3/computations/rust_correlation.py b/gn3/computations/rust_correlation.py index c2783f1..0539527 100644 --- a/gn3/computations/rust_correlation.py +++ b/gn3/computations/rust_correlation.py @@ -15,7 +15,8 @@ from gn3.settings import CORRELATION_COMMAND from gn3.settings import TMPDIR -def generate_input_files(dataset: list[str], output_dir: str = TMPDIR): +def generate_input_files(dataset: list[str], + output_dir: str = TMPDIR) ->(str, str): """function generates outputfiles and inputfiles""" tmp_dir = f"{output_dir}/correlation" @@ -65,9 +66,7 @@ def run_correlation(dataset, trait_vals: command_list = [CORRELATION_COMMAND, json_file, TMPDIR] - results = subprocess.run(command_list, check=True) - - return results + return subprocess.run(command_list, check=True) def parse_correlation_output(result_file: str): diff --git a/tests/unit/computations/test_rust_correlation.py b/tests/unit/computations/test_rust_correlation.py index 75f9e47..b402621 100644 --- a/tests/unit/computations/test_rust_correlation.py +++ b/tests/unit/computations/test_rust_correlation.py @@ -9,10 +9,6 @@ from gn3.computations.rust_correlation import generate_input_files from gn3.computations.rust_correlation import parse_correlation_output -@pytest.mark.unit_test -def test_run_correlation(): - """test calling rusts' correlation """ - @pytest.mark.unit_test def test_generate_input(): |