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
bf6a7e15
Commit
bf6a7e15
authored
Nov 17, 2021
by
Danijel Schorlemmer
Browse files
Added main function
parent
cf1c3b16
Pipeline
#30686
failed with stage
in 1 minute and 20 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
losscalculator/damage_calculator.py
View file @
bf6a7e15
...
...
@@ -101,7 +101,7 @@ def damage_calculator(
exposure
.
to_csv
(
result_filepath
,
index
=
False
)
if
__name__
==
"__
main
__"
:
def
main
()
:
parser
=
argparse
.
ArgumentParser
(
description
=
"This program computes the probabilities of occurrence of different "
...
...
@@ -213,3 +213,7 @@ if __name__ == "__main__":
result_filepath
,
)
print
(
"Execution time of the script"
,
(
datetime
.
datetime
.
now
()
-
startTime
))
if
__name__
==
"__main__"
:
main
()
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