From ace666553a98f3224b682d0b0b6759695c2ac298 Mon Sep 17 00:00:00 2001 From: connor Date: Fri, 30 Aug 2024 18:01:26 -0400 Subject: [PATCH 1/3] Add version number to numpy --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 92ae9b19..8a9cecfc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ xmltodict -numpy +numpy==1.26.4 trimesh[all] pyproj pandas From 8a681185032e9aaf3b12cb12bef82e7b4221db45 Mon Sep 17 00:00:00 2001 From: s_ranjbar Date: Mon, 9 Sep 2024 11:11:33 -0400 Subject: [PATCH 2/3] fix: small bugs in the irradiance units were fixed. --- hub/city_model_structure/building_demand/surface.py | 8 ++++---- hub/imports/results/simplified_radiosity_algorithm.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hub/city_model_structure/building_demand/surface.py b/hub/city_model_structure/building_demand/surface.py index a500c73a..c67b157c 100644 --- a/hub/city_model_structure/building_demand/surface.py +++ b/hub/city_model_structure/building_demand/surface.py @@ -180,7 +180,7 @@ class Surface: @property def global_irradiance(self) -> dict: """ - Get global irradiance on surface in J/m2 + Get global irradiance on surface in W/m2 :return: dict """ return self._global_irradiance @@ -188,7 +188,7 @@ class Surface: @global_irradiance.setter def global_irradiance(self, value): """ - Set global irradiance on surface in J/m2 + Set global irradiance on surface in W/m2 :param value: dict """ self._global_irradiance = value @@ -390,7 +390,7 @@ class Surface: @property def global_irradiance_tilted(self) -> dict: """ - Get global irradiance on a tilted surface in J/m2 + Get global irradiance on a tilted surface in W/m2 :return: dict """ return self._global_irradiance_tilted @@ -398,7 +398,7 @@ class Surface: @global_irradiance_tilted.setter def global_irradiance_tilted(self, value): """ - Set global irradiance on a tilted surface in J/m2 + Set global irradiance on a tilted surface in W/m2 :param value: dict """ self._global_irradiance_tilted = value diff --git a/hub/imports/results/simplified_radiosity_algorithm.py b/hub/imports/results/simplified_radiosity_algorithm.py index 3824e7ce..9b09b5f8 100644 --- a/hub/imports/results/simplified_radiosity_algorithm.py +++ b/hub/imports/results/simplified_radiosity_algorithm.py @@ -34,7 +34,7 @@ class SimplifiedRadiosityAlgorithm: for key in self._results: _irradiance = {} header_name = key.split(':') - result = [x * cte.WATTS_HOUR_TO_JULES for x in self._results[key]] + result = [x for x in self._results[key]] city_object_name = header_name[1] building = self._city.city_object(city_object_name) surface_id = header_name[2] From a45cf02b287fca0adcc9f55704405a1a79e3c733 Mon Sep 17 00:00:00 2001 From: Guille Gutierrez Date: Mon, 23 Sep 2024 11:57:33 -0400 Subject: [PATCH 3/3] Update hub/version.py --- hub/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/version.py b/hub/version.py index e12713d6..b0317da1 100644 --- a/hub/version.py +++ b/hub/version.py @@ -1,4 +1,4 @@ """ Hub version number """ -__version__ = '0.2.0.8' +__version__ = '0.2.0.9'