File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
[Michele Simionato]
2
+ * Specifying total_losses is now mandatory in damage calculations with
3
+ multiple loss types
2
4
* Added support for consequence=losses for liquefaction and landslides
3
5
* Added a check for missing secondary perils
4
6
* Added loss types liquefaction and landslide
Original file line number Diff line number Diff line change @@ -1037,7 +1037,6 @@ def build_damage_dt(dstore):
1037
1037
:returns:
1038
1038
a composite dtype loss_type -> (ds1, ds2, ...)
1039
1039
"""
1040
- oq = dstore ['oqparam' ]
1041
1040
attrs = json .loads (dstore .get_attr ('damages-rlzs' , 'json' ))
1042
1041
limit_states = list (dstore .get_attr ('crm' , 'limit_states' ))
1043
1042
csqs = attrs ['dmg_state' ][len (limit_states ) + 1 :] # consequences
You can’t perform that action at this time.
0 commit comments