Commit 07afc417 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

Remove deprecated arguments

parent 481e114b
Pipeline #36011 failed with stage
in 1 minute and 11 seconds
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment