Merge pull request 'Usage fzk hous in exoport idf' (#15) from my_test into main

Reviewed-on: https://nextgenerations-cities.encs.concordia.ca/gitea/CERC/hub/pulls/15
This commit is contained in:
Guille Gutierrez 2023-03-24 10:55:27 -04:00
commit 5a5f9f0ef0

View File

@ -100,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,