Skip to content

Commit 82b27e0

Browse files
author
Chahan Kropf
committed
Update impact tests
1 parent c1916b4 commit 82b27e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

climada/engine/test/test_impact_calc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,13 @@ def test_single_exp_zero_mdr(self):
574574
eai_exp = np.array([aai_agg])
575575
at_event = np.array([imp_evt, 0])
576576
exp.set_geometry_points()
577+
exp.assign_centroids(haz, threshold=1)
577578
impf_tc = ImpfTropCyclone.from_emanuel_usa()
578579
impf_set = ImpactFuncSet([impf_tc])
579580
impf_set.check()
580-
imp = ImpactCalc(exp, impf_set, haz).impact(save_mat=True)
581+
imp = ImpactCalc(exp, impf_set, haz).impact(
582+
assign_centroids=False, save_mat=True
583+
)
581584
check_impact(self, imp, haz, exp, aai_agg, eai_exp, at_event, at_event)
582585

583586

0 commit comments

Comments
 (0)