From b722125c3ec420b32e2996b0b4050e67469d6935 Mon Sep 17 00:00:00 2001 From: guille Date: Fri, 17 Mar 2023 16:00:28 -0400 Subject: [PATCH] performance debugs --- hub/imports/geometry/geojson.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hub/imports/geometry/geojson.py b/hub/imports/geometry/geojson.py index fcdee3f9..f101e911 100644 --- a/hub/imports/geometry/geojson.py +++ b/hub/imports/geometry/geojson.py @@ -237,10 +237,12 @@ class Geojson: self._city.level_of_detail.geometry = lod if lod == 1: start = datetime.datetime.now() - lines_information = GeometryHelper.city_mapping(self._city) + lines_information = GeometryHelper.city_mapping(self._city, plot=True) + print(lines_information) print(f'mapping: {datetime.datetime.now() - start}') - - # self._store_shared_percentage_to_walls(self._city, lines_information) + start = datetime.datetime.now() + self._store_shared_percentage_to_walls(self._city, lines_information) + print(f'shared_walls: {datetime.datetime.now() - start}') if len(missing_functions) > 0: print(f'There are unknown functions {missing_functions}') return self._city