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
07afc417
Commit
07afc417
authored
Dec 10, 2021
by
Marius Kriegerowski
Browse files
Remove deprecated arguments
parent
481e114b
Pipeline
#36011
failed with stage
in 1 minute and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
losscalculator/damage_calculator.py
View file @
07afc417
...
...
@@ -35,7 +35,6 @@ VERSION_STRING = "losscalculator version 0.1"
def
damage_calculator
(
exposure_filepath
,
exposure_format
,
fragility_source
,
intensity_measure_map_filepath
,
taxonomy_map_filepath
,
...
...
@@ -45,7 +44,6 @@ def damage_calculator(
output_format
=
"gpkg"
,
use_xml_fragilities
=
True
,
aggregation_type
=
"building"
,
spatialite_extension_filepath
=
"mod_spatialite"
,
):
"""
This function computes the probabilities of occurrence (PoO) of damage states for a scenario
...
...
@@ -236,25 +234,6 @@ def main():
help
=
"path to the file that includes the exposure assets. Either a CSV file "
+
"or a Spatialite database."
,
)
parser
.
add_argument
(
"-E"
,
"--exposure-format"
,
required
=
False
,
type
=
str
,
default
=
"csv"
,
choices
=
[
"spatialite"
,
"csv"
],
help
=
"format of the exposure model file, either a Spatialite ('spatialite') or "
+
"a comma-separated values file ('csv'). "
+
"Options: ['spatialite', 'csv'] (default: 'csv')"
,
)
parser
.
add_argument
(
"-s"
,
"--spatialite-extension"
,
required
=
False
,
type
=
str
,
default
=
"mod_spatialite"
,
help
=
"File path of the spatialite extension (default: mod_spatialite)"
,
)
parser
.
add_argument
(
"-r"
,
"--results"
,
...
...
@@ -311,8 +290,6 @@ def main():
intensity_measure_map
=
args
.
intensity_measure_map
gm_field_filepath
=
args
.
ground_motion_field
exposure_filepath
=
args
.
exposure
exposure_format
=
args
.
exposure_format
spatialite_extension_filepath
=
args
.
spatialite_extension
result_filepath
=
args
.
results
output_format
=
args
.
output_format
overwrite_result_file
=
args
.
overwrite
...
...
@@ -369,7 +346,6 @@ def main():
damage_calculator
(
exposure_filepath
,
exposure_format
,
fragility_source
,
intensity_measure_map
,
taxonomy_map_filepath
,
...
...
@@ -379,7 +355,6 @@ def main():
output_format
,
use_xml_fragilities
,
aggregation_type
,
spatialite_extension_filepath
,
)
print
(
"Execution time of the script"
,
(
datetime
.
datetime
.
now
()
-
startTime
))
else
:
...
...
Write
Preview
Markdown
is supported
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