From 34477c6d8f09b3b78a9aa33e2f620d84fc43e5d6 Mon Sep 17 00:00:00 2001 From: Pilar Date: Mon, 13 Mar 2023 18:23:35 -0400 Subject: [PATCH] updating costs catalog -> not completed --- .../cost/montreal_custom_catalog.py | 3 +- .../data_models/cost/shell.py | 64 +++++ hub/data/costs/montreal_costs.xml | 233 +++++++++++++----- 3 files changed, 243 insertions(+), 57 deletions(-) create mode 100644 hub/catalog_factories/data_models/cost/shell.py diff --git a/hub/catalog_factories/cost/montreal_custom_catalog.py b/hub/catalog_factories/cost/montreal_custom_catalog.py index d4cf0c10..e86fd3cd 100644 --- a/hub/catalog_factories/cost/montreal_custom_catalog.py +++ b/hub/catalog_factories/cost/montreal_custom_catalog.py @@ -2,8 +2,7 @@ Cost catalog SPDX - License - Identifier: LGPL - 3.0 - or -later Copyright © 2022 Concordia CERC group -Project Coder Atiya atiya.atiya@mail.concordia.ca -Code contributors: Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca +Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca """ import xmltodict diff --git a/hub/catalog_factories/data_models/cost/shell.py b/hub/catalog_factories/data_models/cost/shell.py new file mode 100644 index 00000000..d0465fd2 --- /dev/null +++ b/hub/catalog_factories/data_models/cost/shell.py @@ -0,0 +1,64 @@ +""" +Shell costs from Cost catalog +SPDX - License - Identifier: LGPL - 3.0 - or -later +Copyright © 2023 Concordia CERC group +Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca +""" + + +class Shell: + def __init__(self, refurbishment_basement, envelope, roofing): + self._opaque_reposition = opaque_reposition + self._opaque_initial_investment = opaque_initial_investment + self._opaque_lifetime = opaque_lifetime + self._transparent_reposition = transparent_reposition + self._transparent_initial_investment = transparent_initial_investment + self._transparent_lifetime = transparent_lifetime + + @property + def opaque_reposition(self): + """ + Get reposition costs for opaque envelope per area of external opaque surfaces in currency/m2 + :return: float + """ + return self._opaque_reposition + + @property + def opaque_initial_investment(self): + """ + Get initial investment for opaque envelope per area of external opaque surfaces in currency/m2 + :return: float + """ + return self._opaque_initial_investment + + @property + def opaque_lifetime(self): + """ + Get lifetime of opaque envelope in years + :return: float + """ + return self._opaque_lifetime + + @property + def transparent_reposition(self): + """ + Get reposition costs for transparent envelope per area of windows in currency/m2 + :return: float + """ + return self._transparent_reposition + + @property + def transparent_initial_investment(self): + """ + Get initial investment for transparent envelope per area of windows in currency/m2 + :return: float + """ + return self._transparent_initial_investment + + @property + def transparent_lifetime(self): + """ + Get lifetime of transparent envelope in years + :return: float + """ + return self._transparent_lifetime diff --git a/hub/data/costs/montreal_costs.xml b/hub/data/costs/montreal_costs.xml index 8cb0f0da..5853cbf1 100644 --- a/hub/data/costs/montreal_costs.xml +++ b/hub/data/costs/montreal_costs.xml @@ -1,71 +1,196 @@ - 56 - 9.8 - - - 43.4 - 36 - 50 - - - 78 - 984.5 - 20 - - - - - - 363.5 - 363.5 + + + 0 + + + + 304 + + + 857.14 + + + + + 118 + + + + + + + + 800 + 800 + 25 + + + + 622.86 + 622.86 + 25 + + + 622.86 + 622.86 15 - - - 363.5 - 363.5 + + + 0 + 0 15 - - - 363.5 - 363.5 + + + 47.62 + 47.62 15 - - - - 17 - 17 - 15 - - - 365 - 365 - 15 - - - 365 - 365 - 15 - - - 88 - 2.5 + + + + + 139 + 139 + 20 + + + + + 2.5 + 14 + - 0 - 0 + 12.27 + 0 - 5.6 + 0.075 + + + + 17.71 + + 0.640 + + + 1.2 + + + 0.09 + + + 40 + 40 + 1 + + 30 + + 6.3 + + + 2 + 1.5 + 3.6 + + + 0 + + + 2 + + + + + + + + 0 + + + + 304 + + + 857.14 + + + + + 118 + + + + + + + + 800 + 800 + 25 + + + + 622.86 + 622.86 + 25 + + + 622.86 + 622.86 + 15 + + + 0 + 0 + 15 + + + 47.62 + 47.62 + 15 + + + + + 139 + 139 + 20 + + + + + 6 + 14 + + + + + + 12.27 + 0 + + 0.075 + + + + 17.71 + + 0.640 + + + 1.2 + + + 0.09 40 40 - 0.05 1 - 4.6 30 @@ -78,12 +203,10 @@ 0 - 0 2 - 0 - + \ No newline at end of file