tried to get monthly values from the method in helpers/monthly values.
This commit is contained in:
parent
8f8a6dbf71
commit
cde3bfb4ae
@ -6,6 +6,7 @@ Project Coder Saeed Ranjbar saeed.ranjbar@concordia.ca
|
|||||||
Project collaborator Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
Project collaborator Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||||||
"""
|
"""
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from hub.helpers.monthly_values import MonthlyValues
|
||||||
import csv
|
import csv
|
||||||
|
|
||||||
import hub.helpers.constants as cte
|
import hub.helpers.constants as cte
|
||||||
@ -86,11 +87,14 @@ class EnergyPlusWorkflow:
|
|||||||
building.lighting_electrical_demand[cte.HOUR] = building_energy_demands['Lighting (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.
|
# 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
|
# 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.heating_demand[cte.MONTH] = MonthlyValues.get_total_month(building.heating_demand[cte.HOUR])
|
||||||
building.cooling_demand[cte.MONTH] = [sum(building.cooling_demand[cte.HOUR])]
|
building.cooling_demand[cte.MONTH] = MonthlyValues.get_total_month(building.cooling_demand[cte.HOUR])
|
||||||
building.domestic_hot_water_heat_demand[cte.MONTH] = [sum(building.domestic_hot_water_heat_demand[cte.HOUR])]
|
building.domestic_hot_water_heat_demand[cte.MONTH] = (
|
||||||
building.appliances_electrical_demand[cte.MONTH] = [sum(building.appliances_electrical_demand[cte.HOUR])]
|
MonthlyValues.get_total_month(building.domestic_hot_water_heat_demand[cte.HOUR]))
|
||||||
building.lighting_electrical_demand[cte.MONTH] = [sum(building.lighting_electrical_demand[cte.HOUR])]
|
building.appliances_electrical_demand[cte.MONTH] = (
|
||||||
|
MonthlyValues.get_total_month(building.appliances_electrical_demand[cte.HOUR]))
|
||||||
|
building.lighting_electrical_demand[cte.MONTH] = (
|
||||||
|
MonthlyValues.get_total_month(building.lighting_electrical_demand[cte.HOUR]))
|
||||||
building.heating_demand[cte.YEAR] = [sum(building.heating_demand[cte.MONTH])]
|
building.heating_demand[cte.YEAR] = [sum(building.heating_demand[cte.MONTH])]
|
||||||
building.cooling_demand[cte.YEAR] = [sum(building.cooling_demand[cte.MONTH])]
|
building.cooling_demand[cte.YEAR] = [sum(building.cooling_demand[cte.MONTH])]
|
||||||
building.domestic_hot_water_heat_demand[cte.YEAR] = [sum(building.domestic_hot_water_heat_demand[cte.MONTH])]
|
building.domestic_hot_water_heat_demand[cte.YEAR] = [sum(building.domestic_hot_water_heat_demand[cte.MONTH])]
|
||||||
|
Loading…
Reference in New Issue
Block a user