forked from s_ranjbar/city_retrofit
Remove debug prints and correct unit tests
This commit is contained in:
parent
c1b32b22a3
commit
ab20418a18
|
@ -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']]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user