Usage fzk hous in exoport idf

This commit is contained in:
Guille Gutierrez 2023-03-23 15:47:31 -04:00
parent 50ec57f04f
commit 5096fe3bab
2 changed files with 6 additions and 5 deletions

View File

@ -365,16 +365,16 @@ class Idf:
method = 'Watts/Area'
watts_per_zone_floor_area = thermal_zone.appliances.density
subcategory = f'ELECTRIC EQUIPMENT#{zone_name}#InteriorEquipment'
# _object = self._idf.newidfobject(self._APPLIANCES)
# print(vars(_object))
self._idf.newidfobject(self._APPLIANCES,
Fuel_type=fuel_type,
Fuel_Type=fuel_type,
Name=f'{zone_name}_appliances',
Zone_or_ZoneList_Name=zone_name,
Schedule_Name=f'Appliance schedules {thermal_zone.usage_name}',
Design_Level_Calculation_Method=method,
Watts_per_Zone_Floor_Area=watts_per_zone_floor_area,
Power_per_Zone_Floor_Area=watts_per_zone_floor_area,
Fraction_Latent=fraction_latent,
Fraction_Convective=fraction_convective,
Fraction_Radiant=fraction_radiant,
EndUse_Subcategory=subcategory
)

View File

@ -110,7 +110,8 @@ class TestExports(TestCase):
ConstructionFactory('nrcan', city).enrich()
UsageFactory('nrcan', city).enrich()
try:
EnergyBuildingsExportsFactory('idf', city, self._output_path).export()
idf = EnergyBuildingsExportsFactory('idf', city, self._output_path).export_debug()
print(idf.run())
EnergyBuildingsExportsFactory('idf', city, self._output_path,
target_buildings=['gml_1066158', 'gml_1066159']).export()
except Exception: