Skip to content

Commit b70aefd

Browse files
committed
Updated changelog
1 parent 9599b94 commit b70aefd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

debian/changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[Michele Simionato]
2+
* Specifying total_losses is now mandatory in damage calculations with
3+
multiple loss types
24
* Added support for consequence=losses for liquefaction and landslides
35
* Added a check for missing secondary perils
46
* Added loss types liquefaction and landslide

openquake/calculators/extract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,6 @@ def build_damage_dt(dstore):
10371037
:returns:
10381038
a composite dtype loss_type -> (ds1, ds2, ...)
10391039
"""
1040-
oq = dstore['oqparam']
10411040
attrs = json.loads(dstore.get_attr('damages-rlzs', 'json'))
10421041
limit_states = list(dstore.get_attr('crm', 'limit_states'))
10431042
csqs = attrs['dmg_state'][len(limit_states) + 1:] # consequences

0 commit comments

Comments
 (0)