2023-07-20 11:50:31 -04:00
|
|
|
# Cerc costs
|
2023-06-01 17:11:05 -04:00
|
|
|
|
2023-07-20 11:50:31 -04:00
|
|
|
Uses the cerc-hub as a base for cost calculation, it's intended to be used after executing the complete monthly energy
|
|
|
|
balance workflow called building by building
|
|
|
|
|
|
|
|
This module processes the object-oriented generalization to be used the cost workflow
|
2023-06-13 16:20:30 -04:00
|
|
|
|
|
|
|
# installation
|
|
|
|
|
|
|
|
> $ pip install cerc-cost
|
|
|
|
|
|
|
|
# usage
|
|
|
|
|
2023-07-20 11:50:31 -04:00
|
|
|
> from costs.cost import Cost
|
|
|
|
>
|
|
|
|
> Cost(building, retrofit_scenario=[scenario]>).life_cycle
|
|
|
|
>
|
|
|
|
|
|
|
|
The available scenarios are defined in the constant class as an enum
|
|
|
|
|
|
|
|
> # constants
|
|
|
|
> CURRENT_STATUS = 0
|
|
|
|
>
|
|
|
|
> SKIN_RETROFIT = 1
|
|
|
|
>
|
|
|
|
> SYSTEM_RETROFIT_AND_PV = 2
|
|
|
|
>
|
|
|
|
> SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV = 3
|
|
|
|
>
|
|
|
|
> RETROFITTING_SCENARIOS = [CURRENT_STATUS, SKIN_RETROFIT, SYSTEM_RETROFIT_AND_PV, SKIN_RETROFIT_AND_SYSTEM_RETROFIT_AND_PV]
|
|
|
|
>
|