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"