From 1523dd39530c0cf5fd1a76df31146dbafc336296 Mon Sep 17 00:00:00 2001 From: SoulKindred Date: Mon, 8 Jan 2024 16:07:00 +0100 Subject: [PATCH] both methodes are executed now --- analysis/calculations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analysis/calculations.py b/analysis/calculations.py index 8baaa34..c1950f3 100644 --- a/analysis/calculations.py +++ b/analysis/calculations.py @@ -15,7 +15,7 @@ def is_point_near_multilinestring(point, multilinestring, threshold_distance): return point_geometry.distance(multilinestring) < threshold_distance -def get_data(db): +def calculate_accidents_per_sigspeed(db): get_speeds_sql = """ SELECT wkb_geometry, temporegime_technical @@ -83,7 +83,7 @@ if __name__ == "__main__": remote_db = RemoteDB() try: - #get_data(remote_db) + calculate_accidents_per_sigspeed(remote_db) calculate_sigspeed_length(remote_db) except Exception as e: print(f"Exception {e} in calculations.py")