From 149083430e27ebc06e79068790ebbc288779071d Mon Sep 17 00:00:00 2001 From: Mendez Date: Fri, 8 Sep 2023 16:47:58 -0500 Subject: [PATCH] fixing env var for cpt versions --- src/aclimate_cpt/prediction_class.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aclimate_cpt/prediction_class.py b/src/aclimate_cpt/prediction_class.py index 713b77c..0ce75e3 100644 --- a/src/aclimate_cpt/prediction_class.py +++ b/src/aclimate_cpt/prediction_class.py @@ -570,7 +570,8 @@ def run_cpt(self,path_x, path_y, run, output, confi, p, type_trans): path_pca_scores_x, path_pca_eigen_y, path_pca_load_y, path_pca_scores_y, path_cca_load_x, path_cca_cc, path_cca_scores_x, path_cca_load_y, path_cca_scores_y, path_hit_s, path_hit_ss] - + os.environ["CPT_BIN_DIR"] = "/forecast/models/CPT/15.5.10/bin/" + print(os.getenv("CPT_BIN_DIR")) if platform.system() == "Windows": cpt_batch = "CPT_batch.exe" elif platform.system() == "Linux":