From 3e1b3873a4565cc711e5b82cc60d77a61e19e4df Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 28 May 2022 17:49:48 +0300 Subject: init rust correlation module --- gn3/computations/rust_correlation.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gn3/computations/rust_correlation.py diff --git a/gn3/computations/rust_correlation.py b/gn3/computations/rust_correlation.py new file mode 100644 index 0000000..16af13e --- /dev/null +++ b/gn3/computations/rust_correlation.py @@ -0,0 +1,13 @@ +import subprocess + +from gn3.settings import CORRELATION_COMMAND +from gn3.settings import TMPDIR + +def run_correlation(file_name:&str,outputdir:str = TMPDIR): + + + command_list = [CORRELATION_COMMAND, file_name,outputdir] + + results = subprocess.run(command_list, check=True) + + return results -- cgit v1.2.3