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