Skip to content

Commit

Permalink
Merge pull request #47 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
fixed error messages
  • Loading branch information
andresk159 authored Apr 10, 2024
2 parents 494976d + 26ff5d1 commit 5aa2dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aclimate_cpt/prediction_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ def run_master(self):
bool_lgth = [x == 0 for x in lgth_list]

if len(empty_dpt) >0:
Warning("Empty areas.json file found")
Warning("Empty areas.json file found (dry area), removing state")
for idx in range(len(items_lgth)):
if lgth_list[idx] == 0:
dir_names.pop(idx)
Expand All @@ -1197,7 +1197,7 @@ def run_master(self):
init_params.pop(nm)

if all(bool_lgth):
raise ValueError("departments has ares.json file empty")
raise ValueError("All states has areas.json file with empty parameters (dry season)")



Expand Down

0 comments on commit 5aa2dc2

Please sign in to comment.