From 481eae5ef2b89502bab3b5a81f24ad6a7635a924 Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Tue, 10 Mar 2020 11:15:17 +0100
Subject: [PATCH] src/db_utils/projects_metadata/get_fill_metadata.py:
 modification in launch_pmagicGEO_script function: we call
 subprocess.check_call instead of subprocess.check_output

---
 src/db_utils/projects_metadata/get_fill_metadata.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/db_utils/projects_metadata/get_fill_metadata.py b/src/db_utils/projects_metadata/get_fill_metadata.py
index eba211a2..537e479d 100644
--- a/src/db_utils/projects_metadata/get_fill_metadata.py
+++ b/src/db_utils/projects_metadata/get_fill_metadata.py
@@ -24,9 +24,9 @@ def launch_pmagicGEO_script() -> None:
         that we want to study.
 
     """
-    subprocess.check_output(f"PmagicGEO.pl -i {Config.geo_id_file} "
-                            f"-p {Config.output} " f"-o {Config.outfile}",
-                            shell=True, stderr=subprocess.STDOUT)
+    subprocess.check_call(f"PmagicGEO.pl -i {Config.geo_id_file} "
+                          f"-p {Config.output} " f"-o {Config.outfile}",
+                          shell=True, stderr=subprocess.STDOUT)
 
 
 def load_metadata() -> pd.DataFrame:
-- 
GitLab