Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Code freeze date: YYYY-MM-DD

### Fixed

- Fixed asset count in impact logging message [#1195](https://github.com/CLIMADA-project/climada_python/pull/1195).

### Deprecated

### Removed
Expand Down
2 changes: 1 addition & 1 deletion climada/engine/impact_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def impact(
return self._return_empty(save_mat)
LOGGER.info(
"Calculating impact for %s assets (>0) and %s events.",
exp_gdf.size,
len(exp_gdf),
self.n_events,
)
imp_mat_gen = self.imp_mat_gen(exp_gdf, impf_col)
Expand Down
2 changes: 1 addition & 1 deletion climada/engine/test/test_impact_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def test_calc_insured_impact_no_insurance(self):
self.assertEqual(
logs.output,
[
"INFO:climada.engine.impact_calc:Calculating impact for 150 assets (>0) and 14450 events."
"INFO:climada.engine.impact_calc:Calculating impact for 50 assets (>0) and 14450 events."
],
)
self.assertEqual(icalc.n_events, len(impact.at_event))
Expand Down
Loading