Skip to content

Commit

Permalink
Merge pull request #30 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
fixed issue with extra params in metrics functions
  • Loading branch information
andresk159 authored Aug 18, 2023
2 parents 3292250 + 64db505 commit 510e79f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/aclimate_cpt/prediction_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,9 +1261,7 @@ def run_master(self):
print(path_output_pred)
time.sleep(10)
for k in dir_names:
print(k)
for j in range(len(path_x[k])):
print(" entre aqui")
print(f">>> Processing: {os.path.basename( path_x[k][j])}")
self.run_cpt( path_x = path_x[k][j],
path_y = path_zone[k],
Expand Down Expand Up @@ -1300,7 +1298,7 @@ def run_master(self):
best_decil_l = {k: [self.best_GI(glob.glob(os.path.join(v[j], "output", '**_GI.txt'))) for j in range(len(v))] for k, v in path_months_l.items()}


metricas_all = {k: [ self.metricas(root_path = best_decil_l[k][v],month = month_season[k][v],season_type = season[k][v],predictand = predictands[k][v], true_col_names = part_id[k], years_season = years[k][v])for v in range(len(best_decil_l[k]))] for k in dir_names}
metricas_all = {k: [ self.metricas(root_path = best_decil_l[k][v],month = month_season[k][v], true_col_names = part_id[k], years_season = years[k][v])for v in range(len(best_decil_l[k]))] for k in dir_names}

metricas_final = []
for k,v in metricas_all.items():
Expand Down

0 comments on commit 510e79f

Please sign in to comment.