Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dynamic Exposure
Global Dynamic Exposure
losscalculator
Commits
103239ea
Commit
103239ea
authored
Nov 15, 2021
by
Felix Delattre
Committed by
Tara Evaz Zadeh
Nov 17, 2021
Browse files
Renamed python module to fit naming convention
parent
ddad6f99
Pipeline
#30677
failed with stage
in 4 minutes and 40 seconds
Changes
3
Pipelines
5
Show whitespace changes
Inline
Side-by-side
losscalculator/damage_calculator.py
View file @
103239ea
...
@@ -23,7 +23,8 @@ import numpy as np
...
@@ -23,7 +23,8 @@ import numpy as np
import
pandas
as
pd
import
pandas
as
pd
import
losslib
import
losslib
import
datetime
import
datetime
import
FragilityModel
from
.fragility_model
import
FragilityModel
def
damage_calculator
(
def
damage_calculator
(
...
@@ -53,7 +54,7 @@ def damage_calculator(
...
@@ -53,7 +54,7 @@ def damage_calculator(
# Read inputs.
# Read inputs.
gm_field
=
np
.
loadtxt
(
gm_field_filepath
,
delimiter
=
","
,
skiprows
=
1
)
gm_field
=
np
.
loadtxt
(
gm_field_filepath
,
delimiter
=
","
,
skiprows
=
1
)
exposure
=
pd
.
read_csv
(
exposure_filepath
)
exposure
=
pd
.
read_csv
(
exposure_filepath
)
fragility_model
=
FragilityModel
.
FragilityModel
(
fragility_model
=
FragilityModel
(
fragility_filepath
,
fragility_filepath
,
gm_field_filepath
,
gm_field_filepath
,
intensity_measure_map_filepath
,
intensity_measure_map_filepath
,
...
...
losscalculator/
F
ragility
M
odel.py
→
losscalculator/
f
ragility
_m
odel.py
View file @
103239ea
File moved
tests/test_loss
C
alculator.py
→
tests/test_loss
c
alculator.py
View file @
103239ea
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment