From 301ea48953045bbf983b59be9c90ad01cececdb2 Mon Sep 17 00:00:00 2001 From: Guille Date: Tue, 13 Jun 2023 16:20:30 -0400 Subject: [PATCH] partial cost implementation --- README.md | 10 +++- costs/results.py | 126 ++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 129 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d173c7e..a31ed7e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # costs -Object-oriented generalization for the cost workflow +This module processes the object-oriented generalization for the cost workflow + +# installation + +> $ pip install cerc-cost + +# usage + +> TBD \ No newline at end of file diff --git a/costs/results.py b/costs/results.py index 297bbf4..349ef67 100644 --- a/costs/results.py +++ b/costs/results.py @@ -1,8 +1,122 @@ class Results: def __init__(self, building_results: dict): - self._heating_peak_load = building_results - self._cooling_peak_load = building_results - self._heating_peak_load = building_results - self._heating_peak_load = building_results - self._heating_peak_load = building_results - self._heating_peak_load = building_results \ No newline at end of file + self._monthly_cooling_peak_load = building_results['monthly_cooling_peak_load'] + self._yearly_cooling_peak_load = building_results['yearly_cooling_peak_load'] + self._monthly_heating_peak_load = building_results['monthly_heating_peak_load'] + self._yearly_heating_peak_load = building_results['yearly_heating_peak_load'] + self._monthly_cooling_demand = building_results['monthly_cooling_demand'] + self._yearly_cooling_demand = building_results['yearly_cooling_demand'] + self._monthly_heating_demand = building_results['monthly_heating_demand'] + self._yearly_heating_demand = building_results['yearly_heating_demand'] + self._monthly_lighting_electrical_demand = building_results['monthly_lighting_electrical_demand'] + self._yearly_lighting_electrical_demand = building_results['yearly_lighting_electrical_demand'] + self._monthly_appliances_electrical_demand = building_results['monthly_appliances_electrical_demand'] + self._yearly_appliances_electrical_demand = building_results['yearly_appliances_electrical_demand'] + self._monthly_domestic_hot_water_heat_demand = building_results['monthly_domestic_hot_water_heat_demand'] + self._yearly_domestic_hot_water_heat_demand = building_results['yearly_domestic_hot_water_heat_demand'] + self._monthly_heating_consumption = building_results['monthly_heating_consumption'] + self._yearly_heating_consumption = building_results['yearly_heating_consumption'] + self._monthly_cooling_consumption = building_results['monthly_cooling_consumption'] + self._yearly_cooling_consumption = building_results['yearly_cooling_consumption'] + self._monthly_domestic_hot_water_consumption = building_results['monthly_domestic_hot_water_consumption'] + self._yearly_domestic_hot_water_consumption = building_results['yearly_domestic_hot_water_consumption'] + self._monthly_distribution_systems_electrical_consumption = building_results['monthly_distribution_systems_electrical_consumption'] + self._yearly_distribution_systems_electrical_consumption = building_results['yearly_distribution_systems_electrical_consumption'] + self._monthly_on_site_electrical_production = building_results['monthly_on_site_electrical_production'] + self._yearly_on_site_electrical_production = building_results['yearly_on_site_electrical_production'] + + @property + def monthly_cooling_peak_load(self): + return self._monthly_cooling_peak_load + + @property + def yearly_cooling_peak_load(self): + return self._yearly_cooling_peak_load + + @property + def monthly_heating_peak_load(self): + return self._monthly_heating_peak_load + + @property + def yearly_heating_peak_load(self): + return self._yearly_heating_peak_load + + @property + def monthly_cooling_demand(self): + return self._monthly_cooling_demand + + @property + def yearly_cooling_demand(self): + return self._yearly_cooling_demand + + @property + def monthly_heating_demand(self): + return self._monthly_heating_demand + + @property + def yearly_heating_demand(self): + return self._yearly_heating_demand + + @property + def monthly_lighting_electrical_demand(self): + return self._monthly_lighting_electrical_demand + + @property + def yearly_lighting_electrical_demand(self): + return self._yearly_lighting_electrical_demand + + @property + def monthly_appliances_electrical_demand(self): + return self._monthly_appliances_electrical_demand + + @property + def yearly_appliances_electrical_demand(self): + return self._yearly_appliances_electrical_demand + + @property + def monthly_domestic_hot_water_heat_demand(self): + return self._monthly_heating_demand + + @property + def yearly_domestic_hot_water_heat_demand(self): + return self._yearly_heating_demand + + @property + def monthly_heating_consumption(self): + return self._monthly_heating_consumption + + @property + def yearly_heating_consumption(self): + return self._yearly_heating_consumption + + @property + def monthly_cooling_consumption(self): + return self._monthly_cooling_consumption + + @property + def yearly_cooling_consumption(self): + return self._yearly_cooling_consumption + + @property + def monthly_domestic_hot_water_consumption(self): + return self._monthly_domestic_hot_water_consumption + + @property + def yearly_domestic_hot_water_consumption(self): + return self._yearly_domestic_hot_water_consumption + + @property + def monthly_distribution_systems_electrical_consumption(self): + return self._monthly_distribution_systems_electrical_consumption + + @property + def yearly_distribution_systems_electrical_consumption(self): + return self._yearly_distribution_systems_electrical_consumption + + @property + def monthly_on_site_electrical_production(self): + return self._monthly_on_site_electrical_production + + @property + def yearly_on_site_electrical_production(self): + return self._yearly_on_site_electrical_production