modified the test checking if it only returns the hourly, monthly and yearly demands for building 12
This commit is contained in:
parent
cd7104206a
commit
707b42f2a9
|
@ -30,7 +30,7 @@ class TestResultsImport(TestCase):
|
||||||
"""
|
"""
|
||||||
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
|
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
|
||||||
self._output_path = (Path(__file__).parent / 'tests_outputs').resolve()
|
self._output_path = (Path(__file__).parent / 'tests_outputs').resolve()
|
||||||
file = 'summerschool_one_building.geojson'
|
file = 'test.geojson'
|
||||||
file_path = (self._example_path / file).resolve()
|
file_path = (self._example_path / file).resolve()
|
||||||
self._city = GeometryFactory('geojson',
|
self._city = GeometryFactory('geojson',
|
||||||
path=file_path,
|
path=file_path,
|
||||||
|
@ -96,7 +96,12 @@ class TestResultsImport(TestCase):
|
||||||
def test_energy_plus_results_import(self):
|
def test_energy_plus_results_import(self):
|
||||||
ResultFactory('energy_plus_workflow', self._city, self._example_path).enrich()
|
ResultFactory('energy_plus_workflow', self._city, self._example_path).enrich()
|
||||||
for building in self._city.buildings:
|
for building in self._city.buildings:
|
||||||
print(building.name)
|
csv_output_name = f'{building.name}_out.csv'
|
||||||
print(building.heating_demand)
|
csv_output_path = (self._example_path / csv_output_name).resolve()
|
||||||
print(building.cooling_demand)
|
if csv_output_path.is_file():
|
||||||
|
print(building.name)
|
||||||
|
print(building.heating_demand)
|
||||||
|
print(building.heating_demand.keys())
|
||||||
|
print(building.cooling_demand)
|
||||||
|
print(building.cooling_demand.keys())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user