From 286401ec07c5fdbbb1ee6a0f83c359746fafcce7 Mon Sep 17 00:00:00 2001 From: Mendez Date: Fri, 18 Aug 2023 10:23:36 -0500 Subject: [PATCH] check predictrs dict --- 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 4486e68..ccec6e1 100644 --- a/src/aclimate_cpt/prediction_class.py +++ b/src/aclimate_cpt/prediction_class.py @@ -1168,7 +1168,8 @@ def run_master(self): month_season = {k: [self.get_season_months(x["season"], month_abb = month_abb) for x in val if len(x['areas'] )!= 0] for k,val in init_params.items()} predictands = {k: [x["predictand"] for x in val if len(x['areas'] )!= 0] for k,val in init_params.items()} predictors = {k: [ len(np.unique(pd.DataFrame(x["areas"])["predictor"].to_numpy().tolist())) for x in val if len(x['areas'] )!= 0] for k,val in init_params.items()} - + print(predictors) + time.sleep(5) #start_date = date.today()+ datetime.timedelta(days = 30) years = {k: self.get_season_years(season_type = value[0]["type"], month = self.month, year = self.year) for k,value in init_params.items()}