small changes in importer
This commit is contained in:
parent
1392c05489
commit
8f8a6dbf71
@ -75,17 +75,17 @@ class EnergyPlusWorkflow:
|
||||
:return: None
|
||||
"""
|
||||
for building in self._city.buildings:
|
||||
file_name = building.name + '_out' + '.csv'
|
||||
file_name = f'{building.name}_out.csv'
|
||||
energy_plus_output_file_path = Path(self._base_path / file_name).resolve()
|
||||
if energy_plus_output_file_path.is_file():
|
||||
building.heating_demand[cte.HOUR] = self._building_energy_demands(energy_plus_output_file_path)['Heating (J)']
|
||||
building.cooling_demand[cte.HOUR] = self._building_energy_demands(energy_plus_output_file_path)['Cooling (J)']
|
||||
building.domestic_hot_water_heat_demand[cte.HOUR] = (
|
||||
self._building_energy_demands(energy_plus_output_file_path))['DHW (J)']
|
||||
building.appliances_electrical_demand[cte.HOUR] = (
|
||||
self._building_energy_demands(energy_plus_output_file_path))['Appliances (J)']
|
||||
building.lighting_electrical_demand[cte.HOUR] = (
|
||||
self._building_energy_demands(energy_plus_output_file_path))['Lighting (J)']
|
||||
building_energy_demands = self._building_energy_demands(energy_plus_output_file_path)
|
||||
building.heating_demand[cte.HOUR] = building_energy_demands['Heating (J)']
|
||||
building.cooling_demand[cte.HOUR] = building_energy_demands['Cooling (J)']
|
||||
building.domestic_hot_water_heat_demand[cte.HOUR] = building_energy_demands['DHW (J)']
|
||||
building.appliances_electrical_demand[cte.HOUR] = building_energy_demands['Appliances (J)']
|
||||
building.lighting_electrical_demand[cte.HOUR] = building_energy_demands['Lighting (J)']
|
||||
# todo: @Saeed, this a list of ONE value with the total energy of the year, exactly the same as cte.YEAR.
|
||||
# You have to use the method to add hourly values from helpers/monthly_values
|
||||
building.heating_demand[cte.MONTH] = [sum(building.heating_demand[cte.HOUR])]
|
||||
building.cooling_demand[cte.MONTH] = [sum(building.cooling_demand[cte.HOUR])]
|
||||
building.domestic_hot_water_heat_demand[cte.MONTH] = [sum(building.domestic_hot_water_heat_demand[cte.HOUR])]
|
||||
|
@ -112,7 +112,7 @@ class InselMonthlyEnergyBalance:
|
||||
:return: None
|
||||
"""
|
||||
for building in self._city.buildings:
|
||||
file_name = building.name + '.out'
|
||||
file_name = f'{building.name}.out'
|
||||
insel_output_file_path = Path(self._base_path / file_name).resolve()
|
||||
if insel_output_file_path.is_file():
|
||||
building.heating_demand[cte.MONTH], building.cooling_demand[cte.MONTH] \
|
||||
|
Loading…
Reference in New Issue
Block a user