Skip to content

Commit 5aa2dc2

Browse files
authored
Merge pull request #47 from CIAT-DAPA/develop
fixed error messages
2 parents 494976d + 26ff5d1 commit 5aa2dc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aclimate_cpt/prediction_class.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ def run_master(self):
11871187
bool_lgth = [x == 0 for x in lgth_list]
11881188

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

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

12021202

12031203

0 commit comments

Comments
 (0)