Commit bf6a7e15 authored by Danijel Schorlemmer's avatar Danijel Schorlemmer
Browse files

Added main function

parent cf1c3b16
Pipeline #30686 failed with stage
in 1 minute and 20 seconds
......@@ -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()
Supports Markdown
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