From 5a9bde6c51ebac47bb60e2e1e05457f4dae97a37 Mon Sep 17 00:00:00 2001 From: Peter Yefi Date: Thu, 10 Mar 2022 10:43:59 -0500 Subject: [PATCH 1/5] Updated git ignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ca8768ed..10a17b31 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /development_tests/ /data/energy_systems/heat_pumps/*.csv /data/energy_systems/heat_pumps/*.insel +.DS_Store \ No newline at end of file From be10bc81f14138541997b8319a3d93cfe1c10e4a Mon Sep 17 00:00:00 2001 From: Peter Yefi Date: Fri, 8 Apr 2022 13:38:32 -0400 Subject: [PATCH 2/5] Changed air source filename. Cleanup --- .../__pycache__/greenery_content.cpython-38.pyc | Bin 0 -> 1232 bytes .../greenery/__pycache__/plant.cpython-38.pyc | Bin 0 -> 2642 bytes .../__pycache__/plant_percentage.cpython-38.pyc | Bin 0 -> 1009 bytes .../greenery/__pycache__/soil.cpython-38.pyc | Bin 0 -> 3298 bytes .../__pycache__/vegetation.cpython-38.pyc | Bin 0 -> 5030 bytes .../__pycache__/__init__.cpython-38.pyc | Bin 163 -> 0 bytes .../__pycache__/heat_pump_export.cpython-38.pyc | Bin 8925 -> 0 bytes exports/energy_systems/air_source_hp_export.py | 2 +- .../energy_systems/air_source_hp_parameters.py | 2 +- 9 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 catalogs/data_model/greenery/__pycache__/greenery_content.cpython-38.pyc create mode 100644 catalogs/data_model/greenery/__pycache__/plant.cpython-38.pyc create mode 100644 catalogs/data_model/greenery/__pycache__/plant_percentage.cpython-38.pyc create mode 100644 catalogs/data_model/greenery/__pycache__/soil.cpython-38.pyc create mode 100644 catalogs/data_model/greenery/__pycache__/vegetation.cpython-38.pyc delete mode 100644 exports/energy_systems/__pycache__/__init__.cpython-38.pyc delete mode 100644 exports/energy_systems/__pycache__/heat_pump_export.cpython-38.pyc diff --git a/catalogs/data_model/greenery/__pycache__/greenery_content.cpython-38.pyc b/catalogs/data_model/greenery/__pycache__/greenery_content.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dc52456766e1b52c7da756f410cd28336ac687c0 GIT binary patch literal 1232 zcma)4!D<^Z5Y?{N>&+%^FHI=qBHBaoA>QC#N+~5F0aFNRAfyyu#AYSiO61j6k_$Gz zCHMY8uO+|H&)94KqNk3uw&R)vqGe`BqtWQio4IH$DKMZU8EGpXS+*JXngBF&91L!u=Yx)qdxW};tiu11CPpt_5>LuvzF`uioh z&`jy1V8H2w^?7p4^tF*iLglDP)pa8HrB3Dz(+P#nk&&cKB!hW3mj;=)vt3Neh!CE0 zLr7%n2|*z*gm3zCjfD0hF!OBCd|BIyW5eE_p(|JY^i7Om9SVW(i^Dv}X2=#}>*b^!dal8iMKNH6z=>Px# literal 0 HcmV?d00001 diff --git a/catalogs/data_model/greenery/__pycache__/plant.cpython-38.pyc b/catalogs/data_model/greenery/__pycache__/plant.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7a5d1110a90312fd0e30422502b1e010afb52c79 GIT binary patch literal 2642 zcma)8&2Hm15EgA&wiW;6XS3OMw=L6M6!0PTBHL426xnWyAZ?HhHdvrAP!Nj9ILgYB zLdtC&q^IQ2hbW5nm>1{+^f7epsjtveXDF#woH#HI&J4*R=hKk<=(o+LZ9w^L_4Uz< zs$u+%jbbT7V+*SK7z8)^1}D7alVPb}CdQ7z%iO#&xOrLXo4j&pbga>z;ArniAp#-C z)OBLV4+oTkro)g6pC0&55L4H8l(G*Gw!fnrbkB1|pafXETm-Rq>0$VVnSmJs`>?lF!}_tQNnCo8U3;_ z(@b2Feg*6bx2_DZEwHP+rtK=&b#80B2KEAPXuA$}lee^OgWcwf+Fk&Ai7#urAxzO6 z5Wey&;Sc!gl?iLN_(RC|T2j&ZbaA8df>0|^UqMwI#6{`UxG)&GARtT7DuXsbS3p~! ztDtM3>!5AW3!odIo1j|*oZE)h;KSn-}c@rAyqFDaL~u%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}s;VSpU<8iwc8g?cuH-2>7ZWqu3+-@UwBbX^mCJ^ zAmLxUHsn1xX#f4vd8N2iodJi-I^w5pXP2utz8G|v=nZW7rsKIMsuSh~)xpF7!9rr_ zbi<_4!S&jMQBbCu2c=~^$Cz~tvz+p~tl~LpN7jysmf?dKo4yJ~09VGjKD3u>7J+Av z`vmwRdE=SA&#GC!mHjih_Hc_e=GA{Hg|ox%cc=8e0$5u?=9lx|vNWcJ`Tv+%k{ zq@XCJlbT1Dq4B3NKD7y-a4;j4&D&I>q(U&MM19dO;8?4G2qf4>9QxW z0?7v`K14xKJVfyk3M>S26U7#aM<}KxOe0-Eu^MA}QEd=V&Z{}oDrRdE=N`a^M~PA< W97=UZnwOyb-8iuCaf&XP`QrZwmRCRk literal 0 HcmV?d00001 diff --git a/catalogs/data_model/greenery/__pycache__/vegetation.cpython-38.pyc b/catalogs/data_model/greenery/__pycache__/vegetation.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d2b673ab8c7d3cbdff91450f9ed5f946f128c06 GIT binary patch literal 5030 zcma)9OK;mo5GG|wmg$FN+43W?9XgJiD2XM}+1>D4dk)SY85Hxo!)22ja zNg0q~Uuxfa>$%81zoEDO3|@O_{z6ZkS-w^;gA};?ad$ZT&1iNw`+j^}k>L7NdUxI4gLn`CQp>n{*gwi%@j z%G#=-ySio9R06$Pw+Xe>541*I-8JooYFN7CD0{nGzo={Kj%m<_LjnCnXu~xRP0C)V zJKMWEF!Z>x4z119HA{CXQ{LFkHZyBSuKM?9bz^;FL)~TeF*RKEb;~^hx$Tx|Srj@K z)G&Ic*7yLc+m%{4R=1h$(oMr|7&arOUNLm#3(%L!vX|er^oF}j8IW@I8Z~fSywdQn z3AghvG*sG`!8Ii)4!9alq50#PI~+88XXp9`GEQ=ePj)2D!=cB;WjC1^@3|Pl^9O1AP!)h*NOCf!p~6&3Wor zI+ry0T!uCUPeahBq0c~{g?O}r2Qg7^)edoMl^_4TC-W(%ezOWanhiU z^X_oZH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leted file mode 100644 index 2c72bf79a0ddfec56d36678103fa2610d83ed71b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 163 zcmWIL<>g`kf`3iF5<&E15P=LBfgA@QE@lA|DGb33nv8xc8Hzx{2;!HAerR!OQL%nO zYDsEQWolZczDsIxc1eDLeoB6BL1Iz1eokgmv3_brL4HvQkj_gjO0SGBt}HG|%`MiC fkI&4@EQycTE2zB1VUwGmQks)$2eRQa5HkP({PQYb diff --git a/exports/energy_systems/__pycache__/heat_pump_export.cpython-38.pyc b/exports/energy_systems/__pycache__/heat_pump_export.cpython-38.pyc deleted file mode 100644 index f72a477ebe7ebf26c9941029c35997cf0293427f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8925 zcma)BOK=-UdY%^s4?aYZ6h*G&^;niI!IJnAC3_XckwQwAToTDh@=8X$nHr)8;E(_Y z>KTaQEVwzyxvjJ3R5n#))n2wLhn!NmCZ`;dTTWA{Tylx3a>yyE+Kco3-2-3%kXi#Z zJ>C8P{dZ6I|L(8G#tI64#s9Ik{{51o{3kWiKOK!bc!DP=m{L-h%CwqVQt{SnT3s*c zb)#g|Go?)3ESai=XG>YYjasgrFXfZILTTg+g=Luet-{PVT4|JNPnBY}_4goLc;GtW zW~<)3_qyrx&~n8qu(r|NM7LG;-ActPdu}7Nyhi9-f&0qkPR*+LyzYcS;pyhu3+tNo z$Sb>zz(wsL1Fl!`Tz<=X^u^{QbX}icMCo(uTFnVvURd>;``oK;ht@y+)>>X%Ua~g1 zzvGre>uxLD2HvI%H0x`(;#p0q?xS|6T6etKeA%xT-eTp-deMlDM_v%dnP;tL&5bi( zH9Wr&8*5%UEUIztnOkqtd}YE;|4cOQ;0gW`g{xpom6FEPlFl@yf2))XH{+VF$qbhH zwZTl5{no&?=2#xE94oL9yz^|7jp1EjUsj9*}(U9epJ`+tl|l7p=g7%&M9rhrkW;dDr&l@ zX>APEZSI)&JxGiw6tI$Og4T#d>uw}DL~n81fkO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#L1f2jp~O5;2`v u;Dgu))7Yl diff --git a/exports/energy_systems/air_source_hp_export.py b/exports/energy_systems/air_source_hp_export.py index 29daa827..5e99b2a9 100644 --- a/exports/energy_systems/air_source_hp_export.py +++ b/exports/energy_systems/air_source_hp_export.py @@ -21,7 +21,7 @@ class AirSourceHPExport(HeatPumpExport): :param base_path: path to energy system files :param city: the city object :param output_path: the file to hold insel simulation results - :param sim_type: the simulation type to run: 1 for series, 0 for parallel + :param sim_type: the simulation type to run: 0 for series, 1 for parallel """ tmp_file = 'heat_pumps/as_series.txt' if sim_type == 0 else 'heat_pumps/as_parallel.txt' template_path = (base_path / tmp_file) diff --git a/imports/energy_systems/air_source_hp_parameters.py b/imports/energy_systems/air_source_hp_parameters.py index decb6617..72cf41e8 100644 --- a/imports/energy_systems/air_source_hp_parameters.py +++ b/imports/energy_systems/air_source_hp_parameters.py @@ -22,7 +22,7 @@ class AirSourceHeatPumpParameters: def __init__(self, city, base_path): self._city = city - self._base_path = (base_path / 'heat_pumps/Air source.xlsx') + self._base_path = (base_path / 'heat_pumps/air_source.xlsx') def _read_file(self) -> Dict: """ From 04d13e50d1659ca19e8f2000002a9475ad50d3ba Mon Sep 17 00:00:00 2001 From: Peter Yefi Date: Mon, 25 Apr 2022 15:16:22 -0400 Subject: [PATCH 3/5] modified ignore file --- .gitignore | 3 ++- .../__pycache__/greenery_content.cpython-38.pyc | Bin 1232 -> 0 bytes .../greenery/__pycache__/plant.cpython-38.pyc | Bin 2642 -> 0 bytes .../__pycache__/plant_percentage.cpython-38.pyc | Bin 1009 -> 0 bytes .../greenery/__pycache__/soil.cpython-38.pyc | Bin 3298 -> 0 bytes .../__pycache__/vegetation.cpython-38.pyc | Bin 5030 -> 0 bytes 6 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 catalogs/data_model/greenery/__pycache__/greenery_content.cpython-38.pyc delete mode 100644 catalogs/data_model/greenery/__pycache__/plant.cpython-38.pyc delete mode 100644 catalogs/data_model/greenery/__pycache__/plant_percentage.cpython-38.pyc delete mode 100644 catalogs/data_model/greenery/__pycache__/soil.cpython-38.pyc delete mode 100644 catalogs/data_model/greenery/__pycache__/vegetation.cpython-38.pyc diff --git a/.gitignore b/.gitignore index 10a17b31..f6fcde6a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ /development_tests/ /data/energy_systems/heat_pumps/*.csv /data/energy_systems/heat_pumps/*.insel -.DS_Store \ No newline at end of file +.DS_Store +libshortwave.dylib \ No newline at end of file diff --git a/catalogs/data_model/greenery/__pycache__/greenery_content.cpython-38.pyc b/catalogs/data_model/greenery/__pycache__/greenery_content.cpython-38.pyc deleted file mode 100644 index dc52456766e1b52c7da756f410cd28336ac687c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1232 zcma)4!D<^Z5Y?{N>&+%^FHI=qBHBaoA>QC#N+~5F0aFNRAfyyu#AYSiO61j6k_$Gz zCHMY8uO+|H&)94KqNk3uw&R)vqGe`BqtWQio4IH$DKMZU8EGpXS+*JXngBF&91L!u=Yx)qdxW};tiu11CPpt_5>LuvzF`uioh z&`jy1V8H2w^?7p4^tF*iLglDP)pa8HrB3Dz(+P#nk&&cKB!hW3mj;=)vt3Neh!CE0 zLr7%n2|*z*gm3zCjfD0hF!OBCd|BIyW5eE_p(|JY^i7Om9SVW(i^Dv}X2=#}>*b^!dal8iMKNH6z=>Px# diff --git a/catalogs/data_model/greenery/__pycache__/plant.cpython-38.pyc b/catalogs/data_model/greenery/__pycache__/plant.cpython-38.pyc deleted file mode 100644 index 7a5d1110a90312fd0e30422502b1e010afb52c79..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2642 zcma)8&2Hm15EgA&wiW;6XS3OMw=L6M6!0PTBHL426xnWyAZ?HhHdvrAP!Nj9ILgYB zLdtC&q^IQ2hbW5nm>1{+^f7epsjtveXDF#woH#HI&J4*R=hKk<=(o+LZ9w^L_4Uz< zs$u+%jbbT7V+*SK7z8)^1}D7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zg6!2U37EfOr-kfs6B7DG0GP(;R2Dw`fD z2XK(P_91q)`#iv2V2`2Oy~VC}4lUVIA_tPeb3T!WJl~YawF-h6$Htz)OqP3Ru-x0+vB~C+j8=a5Hw;>PlJh>7BjVV;?TId7ph-_K z?vW$mdc^T;rL3dF-CxOLvhO;)uQ;He8Sneq!@P3`dq2NqEp<2{bobQcQ0Ij^x||^j*xj!r%aA$ zd@QKJIZz3s1#J{|2Te8L4xAI`CvN-Gl^WV88lz`07&QDdE_=53>_iDU@a?|CgB2Qf zQajdLQ^K=l+^#`&SHh}s;VSpU<8iwc8g?cuH-2>7ZWqu3+-@UwBbX^mCJ^ zAmLxUHsn1xX#f4vd8N2iodJi-I^w5pXP2utz8G|v=nZW7rsKIMsuSh~)xpF7!9rr_ zbi<_4!S&jMQBbCu2c=~^$Cz~tvz+p~tl~LpN7jysmf?dKo4yJ~09VGjKD3u>7J+Av z`vmwRdE=SA&#GC!mHjih_Hc_e=GA{Hg|ox%cc=8e0$5u?=9lx|vNWcJ`Tv+%k{ zq@XCJlbT1Dq4B3NKD7y-a4;j4&D&I>q(U&MM19dO;8?4G2qf4>9QxW z0?7v`K14xKJVfyk3M>S26U7#aM<}KxOe0-Eu^MA}QEd=V&Z{}oDrRdE=N`a^M~PA< W97=UZnwOyb-8iuCaf&XP`QrZwmRCRk diff --git a/catalogs/data_model/greenery/__pycache__/vegetation.cpython-38.pyc b/catalogs/data_model/greenery/__pycache__/vegetation.cpython-38.pyc deleted file mode 100644 index 6d2b673ab8c7d3cbdff91450f9ed5f946f128c06..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5030 zcma)9OK;mo5GG|wmg$FN+43W?9XgJiD2XM}+1>D4dk)SY85Hxo!)22ja zNg0q~Uuxfa>$%81zoEDO3|@O_{z6ZkS-w^;gA};?ad$ZT&1iNw`+j^}k>L7NdUxI4gLn`CQp>n{*gwi%@j z%G#=-ySio9R06$Pw+Xe>541*I-8JooYFN7CD0{nGzo={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8Y$hFJ6 zLG9Ux?ZP0ozIXc+trr5{9`E*%PssRrXFSA(u^LyqaKiRWV@wWM?S?V3G{}kvz84df z&R2qAPrJh==5t+zo6y#0owkOBcoIw1L6(-erJ<_pNd7L^`J~&!XjS1d=Tb{-90DgBh4bHZBa%fqI$29FDoUZ&Cb|2R9a!qDK z_2IU8SIDo}en- brI2qZD(T1A%f0gb_#GBW4py4!>{#l5dp;@? From d5565530c1a157eb8ac2eb813e9e4ea49d947096 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 26 Apr 2022 19:41:00 -0400 Subject: [PATCH 4/5] Merge initial version for Catalogs as factories data sources --- .../construction/construction_helpers.py | 3 ++- catalog_factories/construction/nrel_catalog.py | 2 -- .../data_models/construction/archetype.py | 10 ---------- data/construction/us_archetypes.xml | 18 +++++++----------- data/construction/us_constructions.xml | 4 ++-- imports/geometry/helpers/geometry_helper.py | 3 ++- unittests/test_doe_idf.py | 4 ++-- unittests/test_schedules_factory.py | 1 + 8 files changed, 16 insertions(+), 29 deletions(-) diff --git a/catalog_factories/construction/construction_helpers.py b/catalog_factories/construction/construction_helpers.py index 805772c8..b19cfc3d 100644 --- a/catalog_factories/construction/construction_helpers.py +++ b/catalog_factories/construction/construction_helpers.py @@ -18,7 +18,8 @@ nrel_to_function = { 'quick service restaurant': cte.QUICK_SERVICE_RESTAURANT, 'full service restaurant': cte.FULL_SERVICE_RESTAURANT, 'small hotel': cte.SMALL_HOTEL, - 'large hotel': cte.LARGE_HOTEL + 'large hotel': cte.LARGE_HOTEL, + 'industry': cte.INDUSTRY } nrcan_to_function = { diff --git a/catalog_factories/construction/nrel_catalog.py b/catalog_factories/construction/nrel_catalog.py index 72939b4f..99752162 100644 --- a/catalog_factories/construction/nrel_catalog.py +++ b/catalog_factories/construction/nrel_catalog.py @@ -116,7 +116,6 @@ class NrelCatalog(Catalog): climate_zone = archetype['@climate_zone'] construction_period = reference_standard_to_construction_period[archetype['@reference_standard']] average_storey_height = archetype['average_storey_height']['#text'] - number_of_storeys = archetype['number_of_storeys']['#text'] thermal_capacity = archetype['thermal_capacity']['#text'] extra_loses_due_to_thermal_bridges = archetype['extra_loses_due_to_thermal_bridges']['#text'] indirect_heated_ratio = archetype['indirect_heated_ratio']['#text'] @@ -151,7 +150,6 @@ class NrelCatalog(Catalog): construction_period, archetype_constructions, average_storey_height, - number_of_storeys, thermal_capacity, extra_loses_due_to_thermal_bridges, indirect_heated_ratio, diff --git a/catalog_factories/data_models/construction/archetype.py b/catalog_factories/data_models/construction/archetype.py index 3468864c..7249c075 100644 --- a/catalog_factories/data_models/construction/archetype.py +++ b/catalog_factories/data_models/construction/archetype.py @@ -16,7 +16,6 @@ class Archetype: construction_period, constructions, average_storey_height, - number_of_storeys, thermal_capacity, extra_loses_due_to_thermal_bridges, indirect_heated_ratio, @@ -29,7 +28,6 @@ class Archetype: self._construction_period = construction_period self._constructions = constructions self._average_storey_height = average_storey_height - self._number_of_storeys = number_of_storeys self._thermal_capacity = thermal_capacity self._extra_loses_due_to_thermal_bridges = extra_loses_due_to_thermal_bridges self._indirect_heated_ratio = indirect_heated_ratio @@ -92,14 +90,6 @@ class Archetype: """ return self._average_storey_height - @property - def number_of_storeys(self): - """ - Get archetype number of storeys - :return: int - """ - return self._number_of_storeys - @property def thermal_capacity(self): """ diff --git a/data/construction/us_archetypes.xml b/data/construction/us_archetypes.xml index abaf0e9e..629feb8c 100644 --- a/data/construction/us_archetypes.xml +++ b/data/construction/us_archetypes.xml @@ -16,7 +16,6 @@ 3.05 - 2 130 0.15 0.15 @@ -173,7 +172,6 @@ 6.1 - 1 130 0.15 0.15 @@ -394,7 +392,6 @@ 3.05 - 2 130 0.05 0.15 @@ -549,7 +546,6 @@ 6.1 - 1 130 0.05 0.15 @@ -798,7 +794,7 @@ 0.50 0 - + 0.15 @@ -813,11 +809,11 @@ - - - - - - + 3.05 + 90 + 0.05 + 0.15 + 0.10 + 0 diff --git a/data/construction/us_constructions.xml b/data/construction/us_constructions.xml index d1c298b3..6873186c 100644 --- a/data/construction/us_constructions.xml +++ b/data/construction/us_constructions.xml @@ -716,7 +716,7 @@ - + 105 @@ -797,7 +797,7 @@ - + 105 diff --git a/imports/geometry/helpers/geometry_helper.py b/imports/geometry/helpers/geometry_helper.py index 17504da5..79f36fc3 100644 --- a/imports/geometry/helpers/geometry_helper.py +++ b/imports/geometry/helpers/geometry_helper.py @@ -251,7 +251,8 @@ class GeometryHelper: cte.QUICK_SERVICE_RESTAURANT: cte.RESTAURANT, cte.FULL_SERVICE_RESTAURANT: cte.RESTAURANT, cte.SMALL_HOTEL: cte.HOTEL, - cte.LARGE_HOTEL: cte.HOTEL + cte.LARGE_HOTEL: cte.HOTEL, + cte.INDUSTRY:cte.INDUSTRY } @staticmethod diff --git a/unittests/test_doe_idf.py b/unittests/test_doe_idf.py index a771986e..b7eddcf7 100644 --- a/unittests/test_doe_idf.py +++ b/unittests/test_doe_idf.py @@ -25,7 +25,7 @@ class TestBuildings(TestCase): self._example_path = (Path(__file__).parent / 'tests_data').resolve() def test_doe_idf(self): - city_file = "../unittests/tests_data/C40_Final.gml" + city_file = "../unittests/tests_data/one_building_in_kelowna.gml" output_path = Path('../unittests/tests_outputs/').resolve() city = GeometryFactory('citygml', city_file).city for building in city.buildings: @@ -34,7 +34,7 @@ class TestBuildings(TestCase): UsageFactory('comnet', city).enrich() ExportsFactory('idf', city, output_path).export() - self.assertEqual(10, len(city.buildings)) + self.assertEqual(1, len(city.buildings)) for building in city.buildings: for internal_zone in building.internal_zones: self.assertTrue(len(internal_zone.usage_zones) > 0) diff --git a/unittests/test_schedules_factory.py b/unittests/test_schedules_factory.py index da90168e..85a3c45d 100644 --- a/unittests/test_schedules_factory.py +++ b/unittests/test_schedules_factory.py @@ -35,6 +35,7 @@ class TestSchedulesFactory(TestCase): self.assertIsNotNone(_city, 'city is none') for building in _city.buildings: building.function = GeometryHelper.libs_function_from_hft(building.function) + building.year_of_construction = 2005 UsageFactory('hft', _city).enrich() return _city From d3a52c8bfc82c95515402ce8b3291d9c424fef4e Mon Sep 17 00:00:00 2001 From: Peter Yefi Date: Thu, 28 Apr 2022 10:58:45 -0400 Subject: [PATCH 5/5] Fixed pandas append deprecation warning --- imports/energy_systems/water_to_water_hp_parameters.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/imports/energy_systems/water_to_water_hp_parameters.py b/imports/energy_systems/water_to_water_hp_parameters.py index 8df8563f..e1cdaf55 100644 --- a/imports/energy_systems/water_to_water_hp_parameters.py +++ b/imports/energy_systems/water_to_water_hp_parameters.py @@ -79,11 +79,13 @@ class WaterToWaterHPParameters: :param ranges: the range of values to extract :return: List """ - data = df.iloc[ranges[0]:ranges[1], columns[0]].append(df.iloc[ranges[0]:ranges[1], columns[1]])\ - .append(df.iloc[ranges[0]:ranges[1], columns[2]]) + data = pd.concat([df.iloc[ranges[0]:ranges[1], columns[0]], df.iloc[ranges[0]:ranges[1], columns[1]]]) + data = pd.concat([df.iloc[ranges[0]:ranges[1], columns[2]], data]) for i in range(1, 5): - data = data.append(df.iloc[ranges[i]:ranges[i + 1], columns[0]]).append( - df.iloc[ranges[i]:ranges[i + 1], columns[1]]).append(df.iloc[ranges[i]:ranges[i + 1], columns[2]]) + data = pd.concat([df.iloc[ranges[i]:ranges[i + 1], columns[0]], data]) + data = pd.concat([df.iloc[ranges[i]:ranges[i + 1], columns[1]], data]) + data = pd.concat([df.iloc[ranges[i]:ranges[i + 1], columns[2]], data]) + return data.dropna().values.tolist() def _extract_flow_and_ewt(self, df, ranges, columns, flow_rates):