Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add consequences command and make consequences more easily extensible #8940

Closed
wants to merge 18 commits into from
Closed
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
452 changes: 452 additions & 0 deletions openquake/commands/consequences.py

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
occupancy,slight,moderate,extreme,complete
RES1,5,120,360,720
RES2,5,20,120,240
RES3A,10,120,480,960
RES3B,10,120,480,960
RES3C,10,120,480,960
RES3D,10,120,480,960
RES3E,10,120,480,960
RES3F,10,120,480,960
RES4,10,90,360,480
RES5,10,90,360,480
RES6,10,120,480,960
COM1,10,90,270,360
COM2,10,90,270,360
COM3,10,90,270,360
COM4,20,90,360,480
COM5,20,90,180,360
COM6,20,135,540,720
COM7,20,135,270,540
COM8,20,90,180,360
COM9,20,90,180,360
COM10,5,60,180,360
IND1,10,90,240,360
IND2,10,90,240,360
IND3,10,90,240,360
IND4,10,90,240,360
IND5,20,135,360,540
IND6,10,60,160,320
AGR1,2,20,60,120
REL1,5,120,480,960
GOV1,10,90,360,480
GOV2,10,60,270,360
EDU1,10,90,360,480
EDU2,10,120,480,960
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
occupancy,slight,moderate,extreme,complete
RES1,2,30,90,180
RES2,2,10,30,60
RES3A,5,30,120,240
RES3B,5,30,120,240
RES3C,5,30,120,240
RES3D,5,30,120,240
RES3E,5,30,120,240
RES3F,5,30,120,240
RES4,5,30,120,240
RES5,5,30,120,240
RES6,5,30,120,240
COM1,5,30,90,180
COM2,5,30,90,180
COM3,5,30,90,180
COM4,5,30,120,240
COM5,5,30,90,180
COM6,10,45,180,360
COM7,10,45,180,240
COM8,5,30,90,180
COM9,5,30,120,240
COM10,2,20,80,160
IND1,10,30,120,240
IND2,10,30,120,240
IND3,10,30,120,240
IND4,10,30,120,240
IND5,20,45,180,360
IND6,5,20,80,160
AGR1,2,10,30,60
REL1,10,30,120,240
GOV1,10,30,120,240
GOV2,5,20,90,180
EDU1,10,30,120,240
EDU2,10,45,180,360
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
taxonomy,percentage_of_collapse_given_complete_damage
W1,3
W2,3
W3,3
W4,3
S1L,8
S1M,5
S1H,3
S2L,8
S2M,5
S2H,3
S3,3
S4L,8
S4M,5
S4H,3
S5L,8
S5M,5
S5H,3
C1L,13
C1M,10
C1H,5
C2L,13
C2M,10
C2H,5
C3L,15
C3M,13
C3H,10
PC1,15
PC2L,15
PC2M,13
PC2H,10
RM1L,13
RM1M,10
RM2L,13
RM2M,10
RM2H,5
URML,15
URMM,15
MH,3
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
taxonomy,slight,moderate,extensive,complete
W1,2,8,35,100
W2,2,10,40,100
W3,2,10,40,100
W4,2,8,35,100
S1L,1,7,35,100
S1M,1,7,35,100
S1H,1,7,35,100
S2L,0,0,0,100
S2M,0,0,0,100
S2H,0,0,0,100
S3,0,0,0,100
S4L,1,7,35,100
S4M,1,7,35,100
S4H,1,7,35,100
S5L,1,7,35,100
S5M,1,7,35,100
S5H,1,7,35,100
C1L,1,7,35,100
C1M,1,7,35,100
C1H,1,7,35,100
C2L,1,7,35,100
C2M,1,7,35,100
C2H,1,7,35,100
C3L,1,7,35,100
C3M,1,7,35,100
C3H,1,7,35,100
PC1,2,11,42,100
PC2L,1,7,35,100
PC2M,1,7,35,100
PC2H,1,7,35,100
RM1L,2,10,40,100
RM1M,2,10,40,100
RM2L,1,7,35,100
RM2M,1,7,35,100
RM2H,1,7,35,100
URML,2,12,45,100
URMM,2,12,45,100
MH,2,8,35,100
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
taxonomy,slight,moderate,extensive,complete
W1,0,5,34,100
W2,0,6,33,100
W3,0,6,33,100
W4,0,5,34,100
S1L,0,0,0,100
S1M,0,0,0,100
S1H,0,0,0,100
S2L,0,0,0,100
S2M,0,0,0,100
S2H,0,0,0,100
S3,0,0,0,100
S4L,0,0,0,100
S4M,0,0,0,100
S4H,0,0,0,100
S5L,5,25,60,100
S5M,5,25,60,100
S5H,5,25,60,100
C1L,0,0,0,100
C1M,0,0,0,100
C1H,0,0,0,100
C2L,0,0,0,100
C2M,0,0,0,100
C2H,0,0,0,100
C3L,5,25,60,100
C3M,5,25,60,100
C3H,5,25,60,100
PC1,0,6,32,100
PC2L,0,0,0,100
PC2M,0,0,0,100
PC2H,0,0,0,100
RM1L,3.5,20,50,100
RM1M,3.5,20,50,100
RM2L,5,25,60,100
RM2M,5,25,60,100
RM2H,5,25,60,100
URML,5,25,55,100
URMM,5,25,55,100
MH,0,5,33,100
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
taxonomy,slight,moderate,extensive,complete
W1,0,0,0,100
W2,0,10,28,100
W3,0,10,28,100
W4,0,0,0,100
S1L,0.1,8,28,100
S1M,0.1,8,28,100
S1H,0.1,8,28,100
S2L,0.1,8,28,100
S2M,0.1,8,28,100
S2H,0.1,8,28,100
S3,0,10,30,100
S4L,0.1,10,30,100
S4M,0.1,10,30,100
S4H,0.1,10,30,100
S5L,0.1,10,30,100
S5M,0.1,10,30,100
S5H,0.1,10,30,100
C1L,0.1,8,28,100
C1M,0.1,8,28,100
C1H,0.1,8,28,100
C2L,0.1,10,30,100
C2M,0.1,10,30,100
C2H,0.1,10,30,100
C3L,0.1,10,30,100
C3M,0.1,10,30,100
C3H,0.1,10,30,100
PC1,0.1,10,30,100
PC2L,0.1,9,30,100
PC2M,0.1,9,30,100
PC2H,0.1,9,30,100
RM1L,0.1,10,30,100
RM1M,0.1,10,31,100
RM2L,0.1,9,30,100
RM2M,0.1,9,30,100
RM2H,0.1,9,30,100
URML,0,10,29,100
URMM,0,10,29,100
MH,0,0,0,100
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
taxonomy,slight,moderate,extensive,complete
W1,0,3,27,100
W2,0,2,25,100
W3,0,2,25,100
W4,0,3,27,100
S1L,0,4,30,100
S1M,0,4,30,100
S1H,0,4,30,100
S2L,0,4,30,100
S2M,0,4,30,100
S2H,0,4,30,100
S3,0,5,30,100
S4L,2,10,40,100
S4M,2,10,40,100
S4H,2,10,40,100
S5L,0,4,30,100
S5M,0,4,30,100
S5H,0,4,30,100
C1L,0,5,33,100
C1M,0,5,33,100
C1H,0,5,33,100
C2L,1,8,35,100
C2M,1,8,35,100
C2H,1,8,35,100
C3L,0,4,32,100
C3M,0,4,32,100
C3H,0,4,32,100
PC1,2,10,35,100
PC2L,2,7,35,100
PC2M,2,7,35,100
PC2H,2,7,35,100
RM1L,0,3,25,100
RM1M,0,3,25.5,100
RM2L,0,3,30.5,100
RM2M,0,3,30.5,100
RM2H,0,3,30.5,100
URML,0,2,25,100
URMM,0,2,25,100
MH,0,3,27,100
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
taxonomy,structural,nonstructural
W1,6.5,12.1
W2,4,8.1
W3,4,8.1
W4,6.5,12.1
S1L,0,5.3
S1M,0,5.3
S1H,0,5.3
S2L,0,5.3
S2M,0,5.3
S2H,0,5.3
S3,0,0
S4L,0,5.3
S4M,0,5.3
S4H,0,5.3
S5L,20,5.3
S5M,20,5.3
S5H,20,5.3
C1L,0,5.3
C1M,0,5.3
C1H,0,5.3
C2L,0,5.3
C2M,0,5.3
C2H,0,5.3
C3L,20,5.3
C3M,20,5.3
C3H,20,5.3
PC1,5.5,5.3
PC2L,0,5.3
PC2M,0,5.3
PC2H,0,5.3
RM1L,17.5,5.3
RM1M,17.5,5.3
RM2L,17.5,5.3
RM2M,24.5,5.3
RM2H,24.5,5.3
URML,35,10.5
URMM,35,10.5
MH,10,18
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
taxonomy,structural,nonstructural
W1,15,0
W2,15,1
W3,15,1
W4,15,0
S1L,44,5
S1M,44,5
S1H,44,5
S2L,44,5
S2M,44,5
S2H,44,5
S3,67,1.5
S4L,65,4
S4M,65,4
S4H,65,4
S5L,45,4
S5M,45,4
S5H,45,4
C1L,98,4
C1M,98,4
C1H,98,4
C2L,112,4
C2M,112,4
C2H,112,4
C3L,90,4
C3M,90,4
C3H,90,4
PC1,40,1.5
PC2L,100,4
PC2M,100,4
PC2H,100,4
RM1L,28,4
RM1M,28,4
RM2L,78,4
RM2M,78,4
RM2H,78,4
URML,41,4
URMM,41,4
MH,22,0
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
taxonomy,slight,moderate,extreme,complete,collapse
W1,0.05,0.25,1,5,40
W2,0.05,0.20,1,5,40
W3,0.05,0.20,1,5,40
W4,0.05,0.25,1,5,40
S1L,0.05,0.20,1,5,40
S1M,0.05,0.20,1,5,40
S1H,0.05,0.20,1,5,40
S2L,0.05,0.20,1,5,40
S2M,0.05,0.20,1,5,40
S2H,0.05,0.20,1,5,40
S3,0.05,0.20,1,5,40
S4L,0.05,0.25,1,5,40
S4M,0.05,0.25,1,5,40
S4H,0.05,0.25,1,5,40
S5L,0.05,0.20,1,5,40
S5M,0.05,0.20,1,5,40
S5H,0.05,0.20,1,5,40
C1L,0.05,0.25,1,5,40
C1M,0.05,0.25,1,5,40
C1H,0.05,0.25,1,5,40
C2L,0.05,0.25,1,5,40
C2M,0.05,0.25,1,5,40
C2H,0.05,0.25,1,5,40
C3L,0.05,0.20,1,5,40
C3M,0.05,0.20,1,5,40
C3H,0.05,0.20,1,5,40
PC1,0.05,0.25,1,5,40
PC2L,0.05,0.25,1,5,40
PC2M,0.05,0.25,1,5,40
PC2H,0.05,0.25,1,5,40
RM1L,0.05,0.20,1,5,40
RM1M,0.05,0.20,1,5,40
RM2L,0.05,0.20,1,5,40
RM2M,0.05,0.20,1,5,40
RM2H,0.05,0.20,1,5,40
URML,0.05,0.35,2,10,40
URMM,0.05,0.35,2,10,40
MH,0.05,0.25,1,5,40
Loading
Loading