From 5c0dceed7c99b435fc0471e763884737e8b4547c Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 22 Jun 2022 12:39:29 +0300 Subject: fix issues --- gn3/computations/rust_correlation.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gn3') 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): -- cgit v1.2.3