performance debugs

This commit is contained in:
Guille Gutierrez 2023-03-17 16:00:28 -04:00
parent 4b3ce016b2
commit b722125c3e

View File

@ -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