From a3ffaa4cfc5ce6d3ace84553f60e99700030d132 Mon Sep 17 00:00:00 2001 From: Mendez Date: Fri, 18 Aug 2023 09:55:37 -0500 Subject: [PATCH] fixed small issue when removing tmp file --- src/aclimate_cpt/01_prediccion.py | 3 ++- src/aclimate_cpt/prediction_class.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/aclimate_cpt/01_prediccion.py b/src/aclimate_cpt/01_prediccion.py index 43fe6b4..3acd043 100644 --- a/src/aclimate_cpt/01_prediccion.py +++ b/src/aclimate_cpt/01_prediccion.py @@ -1133,7 +1133,7 @@ def cpt_merge_x_files(file_paths): elif platform.system() == "Linux": os.system("chmod +x"+tmp_file) os.system(tmp_file) - os.remove(tmp_file) + # EjecuciĆ³n de CPT @@ -1145,6 +1145,7 @@ def cpt_merge_x_files(file_paths): #os.rename(tmp_file, merged_out_path) os.remove(file_path_1) os.remove(file_path_2) + os.remove(tmp_file) status = "Success" except subprocess.CalledProcessError: status = "Failed: Error al ejecutar CPT_batch" diff --git a/src/aclimate_cpt/prediction_class.py b/src/aclimate_cpt/prediction_class.py index 0ff9f2a..4486e68 100644 --- a/src/aclimate_cpt/prediction_class.py +++ b/src/aclimate_cpt/prediction_class.py @@ -1132,7 +1132,7 @@ def cpt_merge_x_files(self, file_paths): elif platform.system() == "Linux": os.system("chmod +x"+tmp_file) os.system(tmp_file) - os.remove(tmp_file) + # EjecuciĆ³n de CPT @@ -1144,6 +1144,7 @@ def cpt_merge_x_files(self, file_paths): #os.rename(tmp_file, merged_out_path) os.remove(file_path_1) os.remove(file_path_2) + os.remove(tmp_file) status = "Success" except subprocess.CalledProcessError: status = "Failed: Error al ejecutar CPT_batch"