From ee495bf41a1129ecd90bf7a2282fcfcf7d9bf83c Mon Sep 17 00:00:00 2001 From: Pilar Date: Wed, 22 Feb 2023 08:35:45 -0500 Subject: [PATCH] added nrcan catalog --- hub/imports/geometry/geojson.py | 2 +- hub/unittests/test_construction_factory.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/hub/imports/geometry/geojson.py b/hub/imports/geometry/geojson.py index 58f3949d..21f27b27 100644 --- a/hub/imports/geometry/geojson.py +++ b/hub/imports/geometry/geojson.py @@ -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 diff --git a/hub/unittests/test_construction_factory.py b/hub/unittests/test_construction_factory.py index 023d13ee..026b535f 100644 --- a/hub/unittests/test_construction_factory.py +++ b/hub/unittests/test_construction_factory.py @@ -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)