Usage fzk hous in exoport idf

This commit is contained in:
Guille Gutierrez 2023-03-23 15:38:38 -04:00
parent 26bac29b51
commit ac7fca738a

View File

@ -71,8 +71,6 @@ class TestExports(TestCase):
self._complete_city = self._get_complete_city(from_pickle)
EnergyBuildingsExportsFactory(export_type, self._complete_city, self._output_path).export()
def test_obj_export(self):
"""
export to obj
@ -102,13 +100,15 @@ class TestExports(TestCase):
"""
export to IDF
"""
city = self._get_citygml('EV_GM_MB_LoD2.gml')
for building in city.buildings:
building.year_of_construction = 2006
if building.function is None:
building.function = 'large office'
ConstructionFactory('nrel', city).enrich()
UsageFactory('comnet', city).enrich()
file = 'FZK_Haus_LoD_2.gml'
file_path = (self._example_path / file).resolve()
city = GeometryFactory('citygml',
path=file_path,
function_to_hub=Dictionaries().alkis_function_to_hub_function).city
self.assertIsNotNone(city, 'city is none')
ConstructionFactory('nrcan', city=city)
ConstructionFactory('nrcan', city).enrich()
UsageFactory('nrcan', city).enrich()
try:
EnergyBuildingsExportsFactory('idf', city, self._output_path).export()
EnergyBuildingsExportsFactory('idf', city, self._output_path,