modified energy plus results importer test
This commit is contained in:
parent
707b42f2a9
commit
b24a616d00
|
@ -99,9 +99,19 @@ class TestResultsImport(TestCase):
|
||||||
csv_output_name = f'{building.name}_out.csv'
|
csv_output_name = f'{building.name}_out.csv'
|
||||||
csv_output_path = (self._example_path / csv_output_name).resolve()
|
csv_output_path = (self._example_path / csv_output_name).resolve()
|
||||||
if csv_output_path.is_file():
|
if csv_output_path.is_file():
|
||||||
print(building.name)
|
self.assertEqual(building.name, '12')
|
||||||
print(building.heating_demand)
|
self.assertIsNotNone(building.heating_demand)
|
||||||
print(building.heating_demand.keys())
|
self.assertIsNotNone(building.cooling_demand)
|
||||||
print(building.cooling_demand)
|
self.assertIsNotNone(building.domestic_hot_water_heat_demand)
|
||||||
print(building.cooling_demand.keys())
|
self.assertIsNotNone(building.lighting_electrical_demand)
|
||||||
|
self.assertIsNotNone(building.appliances_electrical_demand)
|
||||||
|
total_demand = sum(building.heating_demand[cte.HOUR])
|
||||||
|
self.assertAlmostEqual(total_demand, building.heating_demand[cte.YEAR][0], 3)
|
||||||
|
total_demand = sum(building.heating_demand[cte.MONTH])
|
||||||
|
self.assertEqual(total_demand, building.heating_demand[cte.YEAR][0], 3)
|
||||||
|
if building.name != '12':
|
||||||
|
self.assertDictEqual(building.heating_demand, {})
|
||||||
|
self.assertDictEqual(building.cooling_demand, {})
|
||||||
|
self.assertDictEqual(building.domestic_hot_water_heat_demand, {})
|
||||||
|
self.assertDictEqual(building.lighting_electrical_demand, {})
|
||||||
|
self.assertDictEqual(building.appliances_electrical_demand, {})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user