diff --git a/hub/exports/building_energy/idf.py b/hub/exports/building_energy/idf.py index 1d0de9c8..f9a02ee2 100644 --- a/hub/exports/building_energy/idf.py +++ b/hub/exports/building_energy/idf.py @@ -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 ) diff --git a/hub/unittests/test_exports.py b/hub/unittests/test_exports.py index 7cf35a4c..6145335e 100644 --- a/hub/unittests/test_exports.py +++ b/hub/unittests/test_exports.py @@ -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: