Include retrofit variable
This commit is contained in:
parent
ad0b32c15d
commit
ad2cbad9d0
|
@ -17,14 +17,13 @@ from hub.imports.energy_systems_factory import EnergySystemsFactory
|
||||||
from hub.imports.geometry_factory import GeometryFactory
|
from hub.imports.geometry_factory import GeometryFactory
|
||||||
from hub.imports.usage_factory import UsageFactory
|
from hub.imports.usage_factory import UsageFactory
|
||||||
from hub.imports.weather_factory import WeatherFactory
|
from hub.imports.weather_factory import WeatherFactory
|
||||||
from hub.helpers import constants as cte
|
|
||||||
from monthly_energy_balance_engine import MonthlyEnergyBalanceEngine
|
from monthly_energy_balance_engine import MonthlyEnergyBalanceEngine
|
||||||
from sra_engine import SraEngine
|
from sra_engine import SraEngine
|
||||||
|
|
||||||
from life_cycle_costs import LifeCycleCosts
|
from life_cycle_costs import LifeCycleCosts
|
||||||
|
|
||||||
# import constants
|
# import constants
|
||||||
from costs import CLIMATE_REFERENCE_CITY, WEATHER_FILE, WEATHER_FORMAT, CONSTRUCTION_FORMAT, USAGE_FORMAT
|
from costs import CLIMATE_REFERENCE_CITY, WEATHER_FILE, WEATHER_FORMAT, CONSTRUCTION_FORMAT, USAGE_FORMAT, RETROFITTING_YEAR_CONSTRUCTION
|
||||||
from costs import ENERGY_SYSTEM_FORMAT, ATTIC_HEATED_CASE, BASEMENT_HEATED_CASE, RETROFITTING_SCENARIOS, NUMBER_OF_YEARS
|
from costs import ENERGY_SYSTEM_FORMAT, ATTIC_HEATED_CASE, BASEMENT_HEATED_CASE, RETROFITTING_SCENARIOS, NUMBER_OF_YEARS
|
||||||
from costs import CONSUMER_PRICE_INDEX, ELECTRICITY_PEAK_INDEX, ELECTRICITY_PRICE_INDEX, GAS_PRICE_INDEX, DISCOUNT_RATE
|
from costs import CONSUMER_PRICE_INDEX, ELECTRICITY_PEAK_INDEX, ELECTRICITY_PRICE_INDEX, GAS_PRICE_INDEX, DISCOUNT_RATE
|
||||||
from costs import SKIN_RETROFIT, SYSTEM_RETROFIT_AND_PV, SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV
|
from costs import SKIN_RETROFIT, SYSTEM_RETROFIT_AND_PV, SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV
|
||||||
|
@ -82,7 +81,7 @@ for retrofitting_scenario in RETROFITTING_SCENARIOS:
|
||||||
|
|
||||||
if retrofitting_scenario in (SKIN_RETROFIT, SYSTEM_RETROFIT_AND_PV):
|
if retrofitting_scenario in (SKIN_RETROFIT, SYSTEM_RETROFIT_AND_PV):
|
||||||
for building in city.buildings:
|
for building in city.buildings:
|
||||||
building.year_of_construction = retrofitting_year_of_construction
|
building.year_of_construction = RETROFITTING_YEAR_CONSTRUCTION
|
||||||
ConstructionFactory(CONSTRUCTION_FORMAT, city).enrich()
|
ConstructionFactory(CONSTRUCTION_FORMAT, city).enrich()
|
||||||
print('enrich retrofitted constructions... done')
|
print('enrich retrofitted constructions... done')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user