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
1a267e31
Commit
1a267e31
authored
Nov 17, 2021
by
Felix Delattre
Committed by
Danijel Schorlemmer
Nov 17, 2021
Browse files
Fixed reference to losslib
parent
bf6a7e15
Pipeline
#30710
passed with stage
in 1 minute and 40 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
losscalculator/damage_calculator.py
View file @
1a267e31
...
...
@@ -21,11 +21,12 @@ import os
import
argparse
import
numpy
as
np
import
pandas
as
pd
import
losslib
import
datetime
from
.fragility_model
import
FragilityModel
from
.losslib
import
get_full_gm_field
def
damage_calculator
(
exposure_filepath
,
...
...
@@ -63,7 +64,7 @@ def damage_calculator(
# Interpolate the ground-motion values for all the assets of the exposure model.
# pylint: disable=E1101
full_gm_field
=
losslib
.
get_full_gm_field
(
full_gm_field
=
get_full_gm_field
(
gm_field
,
exposure
.
lon
,
exposure
.
lat
,
interpolation_method
)
...
...
losscalculator/losslib.py
100755 → 100644
View file @
1a267e31
File mode changed from 100755 to 100644
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