fixing tests after changes in Surface and building

This commit is contained in:
Pilar 2021-04-07 10:33:05 -04:00
parent 88e43a0770
commit 39c6a3afd2
3 changed files with 17 additions and 5 deletions

View File

@ -36,6 +36,7 @@ class UsageZone:
self._heating_schedule = None
self._cooling_schedule = None
self._ventilation_schedule = None
self._schedules = None
self._volume_geometry = None
@property
@ -248,6 +249,18 @@ class UsageZone:
"""
self._ventilation_schedule = values
@property
def schedules(self):
"""
"""
return self._schedules
@schedules.setter
def schedules(self, values):
"""
"""
self._schedules = values
@property
def occupancy_density(self):
"""

View File

@ -26,8 +26,8 @@ class TestExports(TestCase):
def _get_city(self):
if self._city_gml is None:
file_path = (self._example_path / 'one_building_in_kelowna.pickle').resolve()
self._city_gml = City.load(file_path)
file_path = (self._example_path / 'one_building_in_kelowna.gml').resolve()
self._city_gml = GeometryFactory('citygml', file_path)._city_debug
return self._city_gml
def _export(self, export_type):

View File

@ -9,7 +9,6 @@ from pathlib import Path
from unittest import TestCase
from city_model_structure.city import City
from imports.geometry_factory import GeometryFactory
from city_model_structure.attributes.surface import Surface
class TestGeometryFactory(TestCase):
@ -198,8 +197,8 @@ class TestGeometryFactory(TestCase):
Test city surfaces triangulation and polygon creation
:return:
"""
file = (self._example_path / 'gml_17_12_2020.pickle').resolve()
city = City.load(file)
file = (self._example_path / 'gml_17_12_2020.gml').resolve()
city = GeometryFactory('citygml', file)._city_debug
counter = 0
for building in city.buildings: