Merge pull request 'bug correction' (#55) from IDF_bug into main
Reviewed-on: https://nextgenerations-cities.encs.concordia.ca/gitea/CERC/hub/pulls/55
This commit is contained in:
commit
ee06d45ba9
@ -18,6 +18,7 @@ from hub.city_model_structure.attributes.point import Point
|
|||||||
from hub.city_model_structure.greenery.vegetation import Vegetation
|
from hub.city_model_structure.greenery.vegetation import Vegetation
|
||||||
from hub.city_model_structure.building_demand.thermal_boundary import ThermalBoundary
|
from hub.city_model_structure.building_demand.thermal_boundary import ThermalBoundary
|
||||||
import hub.helpers.constants as cte
|
import hub.helpers.constants as cte
|
||||||
|
from hub.helpers.configuration_helper import ConfigurationHelper
|
||||||
|
|
||||||
|
|
||||||
class Surface:
|
class Surface:
|
||||||
@ -240,6 +241,8 @@ class Surface:
|
|||||||
The absorptance as an opaque surface, can be calculated as 1-short_wave_reflectance
|
The absorptance as an opaque surface, can be calculated as 1-short_wave_reflectance
|
||||||
:return: float
|
:return: float
|
||||||
"""
|
"""
|
||||||
|
if self._short_wave_reflectance is None:
|
||||||
|
return ConfigurationHelper.short_wave_reflectance
|
||||||
return self._short_wave_reflectance
|
return self._short_wave_reflectance
|
||||||
|
|
||||||
@short_wave_reflectance.setter
|
@short_wave_reflectance.setter
|
||||||
|
Loading…
Reference in New Issue
Block a user