From ab20418a1861ad46e3012d4b5a293c0bab92359d Mon Sep 17 00:00:00 2001 From: Guille Date: Fri, 26 Jun 2020 10:12:58 -0400 Subject: [PATCH] Remove debug prints and correct unit tests --- geometry/geometry_feeders/city_gml.py | 1 - physics/physics_feeders/us_base_physics_parameters.py | 2 +- tests/test_physics_factory.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/geometry/geometry_feeders/city_gml.py b/geometry/geometry_feeders/city_gml.py index 3a730bbc..a98f71ea 100644 --- a/geometry/geometry_feeders/city_gml.py +++ b/geometry/geometry_feeders/city_gml.py @@ -144,7 +144,6 @@ class CityGml: surfaces = [] for surface_type in iter(bound): try: - print(bound) surfaces = [Surface(s['Polygon']['exterior']['LinearRing']['posList']['#text'], surface_type=GeometryHelper.gml_surface_to_libs(surface_type)) for s in bound[surface_type]['lod2MultiSurface']['MultiSurface']['surfaceMember']] diff --git a/physics/physics_feeders/us_base_physics_parameters.py b/physics/physics_feeders/us_base_physics_parameters.py index 3b54f88d..63d6584e 100644 --- a/physics/physics_feeders/us_base_physics_parameters.py +++ b/physics/physics_feeders/us_base_physics_parameters.py @@ -35,7 +35,7 @@ class UsBasePhysicsParameters: if building_type is None: return archetype = self._search_archetype(building_type, - UsToLibraryTypes.yoc_to_standard(city_object.year_of_construction), + UsToLibraryTypes.yoc_to_standard(building.year_of_construction), self._climate_zone) # ToDo: remove this in the future # ToDo: Raise WrongArchetype if not all the surface types are defined for the given city_object diff --git a/tests/test_physics_factory.py b/tests/test_physics_factory.py index f81c8f20..4ae7d925 100644 --- a/tests/test_physics_factory.py +++ b/tests/test_physics_factory.py @@ -33,7 +33,6 @@ class TestPhysicsFactory(TestCase): def _get_city_with_physics(self): if self._nyc_with_physics is None: self._nyc_with_physics = self._get_citygml() - print(self._nyc_with_physics) PhysicsFactory('us_new_york_city', self._nyc_with_physics, base_path=self._example_path) return self._nyc_with_physics