Merge remote-tracking branch 'origin/master'
# Conflicts: # tests/test_exports.py
This commit is contained in:
commit
5084a4457c
|
@ -36,6 +36,7 @@ class UsageZone:
|
||||||
self._heating_schedule = None
|
self._heating_schedule = None
|
||||||
self._cooling_schedule = None
|
self._cooling_schedule = None
|
||||||
self._ventilation_schedule = None
|
self._ventilation_schedule = None
|
||||||
|
self._schedules = None
|
||||||
self._volume_geometry = None
|
self._volume_geometry = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -248,6 +249,18 @@ class UsageZone:
|
||||||
"""
|
"""
|
||||||
self._ventilation_schedule = values
|
self._ventilation_schedule = values
|
||||||
|
|
||||||
|
@property
|
||||||
|
def schedules(self):
|
||||||
|
"""
|
||||||
|
"""
|
||||||
|
return self._schedules
|
||||||
|
|
||||||
|
@schedules.setter
|
||||||
|
def schedules(self, values):
|
||||||
|
"""
|
||||||
|
"""
|
||||||
|
self._schedules = values
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def occupancy_density(self):
|
def occupancy_density(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -3,6 +3,7 @@ TestExports test and validate the city export formats
|
||||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||||
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
|
@ -9,7 +9,6 @@ from pathlib import Path
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from city_model_structure.city import City
|
from city_model_structure.city import City
|
||||||
from imports.geometry_factory import GeometryFactory
|
from imports.geometry_factory import GeometryFactory
|
||||||
from city_model_structure.attributes.surface import Surface
|
|
||||||
|
|
||||||
|
|
||||||
class TestGeometryFactory(TestCase):
|
class TestGeometryFactory(TestCase):
|
||||||
|
@ -198,8 +197,8 @@ class TestGeometryFactory(TestCase):
|
||||||
Test city surfaces triangulation and polygon creation
|
Test city surfaces triangulation and polygon creation
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
file = (self._example_path / 'gml_17_12_2020.pickle').resolve()
|
file = (self._example_path / 'gml_17_12_2020.gml').resolve()
|
||||||
city = City.load(file)
|
city = GeometryFactory('citygml', file)._city_debug
|
||||||
|
|
||||||
counter = 0
|
counter = 0
|
||||||
for building in city.buildings:
|
for building in city.buildings:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user