Skip to content

Commit 18d6849

Browse files
implement Lukas suggested error message
Co-authored-by: Lukas Riedel <[email protected]>
1 parent 5084cd3 commit 18d6849

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

climada/entity/measures/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ def calc_impact(self, exposures, imp_fun_set, hazard):
204204
if new_haz.centr_exp_col not in new_exp.gdf.columns:
205205
LOGGER.warning(
206206
"No assigned hazard centroids in exposure object after the "
207-
"application of the measure. The centroids were assigned in impact calcualtion."
207+
"application of the measure. The centroids will be assigned during impact "
208+
"calculation. This is potentiall costly. To silence this warning, make sure "
209+
"that centroids are assigned to all exposures."
208210
)
209211
new_exp.assign_centroids(new_haz)
210212

0 commit comments

Comments
 (0)