added nrcan catalog

This commit is contained in:
Pilar 2023-02-22 08:35:45 -05:00
parent 536a3fe414
commit ee495bf41a
2 changed files with 1 additions and 6 deletions

View File

@ -163,6 +163,6 @@ class Geojson:
for building in buildings:
self._city.add_city_object(building)
self._city.level_of_detail.geometry = lod
if len(missing_functions > 0):
if len(missing_functions) > 0:
print(f'There are unknown functions {missing_functions}')
return self._city

View File

@ -272,9 +272,6 @@ class TestConstructionFactory(TestCase):
function_field='LIBELLE_UT',
function_to_hub=Dictionaries().montreal_function_to_hub_function).city
for building in city.buildings:
building.year_of_construction = 1980
building.function = self._internal_function('pluto', building.function)
ConstructionFactory('nrcan', city).enrich()
self._check_buildings(city)
@ -288,8 +285,6 @@ class TestConstructionFactory(TestCase):
self._check_thermal_openings(thermal_boundary)
self._check_surfaces(thermal_boundary)
def test_archetype_not_found(self):
file = 'pluto_building.gml'
city = self._get_citygml(file)