Skip to content

Commit d3ab604

Browse files
authored
Update climada/engine/impact_calc.py
1 parent 215b315 commit d3ab604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/engine/impact_calc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def impact(
123123
>>> impfset = ImpactFuncSet.from_excel(ENT_TEMPLATE_XLS)
124124
>>> exp = Exposures(pd.read_excel(ENT_TEMPLATE_XLS))
125125
>>> #Adjust threshold and distance to centroids/exposure resolution
126-
>>> exp.assign_centroids(hazard, threshold=1.5, distance='haversine')
126+
>>> exp.assign_centroids(hazard, threshold=1.5, distance='euclidean')
127127
>>> impcalc = ImpactCal(exp, impfset, haz)
128128
>>> imp = impcalc.impact(insured=True, assign_centroids=False)
129129
>>> imp.aai_agg

0 commit comments

Comments
 (0)