Skip to content

Commit

Permalink
Merge pull request #24 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
check predictrs dict
  • Loading branch information
andresk159 authored Aug 18, 2023
2 parents 6540295 + 286401e commit bfc1aec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aclimate_cpt/prediction_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}

Expand Down

0 comments on commit bfc1aec

Please sign in to comment.