fixing tests after changes in Surface and building
This commit is contained in:
parent
88e43a0770
commit
39c6a3afd2
|
@ -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):
|
||||
"""
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user