diff --git a/hub/imports/construction/nrcan_physics_parameters.py b/hub/imports/construction/nrcan_physics_parameters.py index ba5b15f8..404f27e9 100644 --- a/hub/imports/construction/nrcan_physics_parameters.py +++ b/hub/imports/construction/nrcan_physics_parameters.py @@ -77,7 +77,7 @@ class NrcanPhysicsParameters: nrcan_archetypes = nrcan_catalog.entries('archetypes') for building_archetype in nrcan_archetypes: construction_period_limits = building_archetype.construction_period.split('_') - if int(construction_period_limits[0]) <= year_of_construction <= int(construction_period_limits[1]): + if int(construction_period_limits[0]) <= int(year_of_construction) <= int(construction_period_limits[1]): if (str(function) == str(building_archetype.function)) and \ (climate_zone == str(building_archetype.climate_zone)): return building_archetype diff --git a/hub/imports/construction/nrel_physics_parameters.py b/hub/imports/construction/nrel_physics_parameters.py index a7f11cdf..80836a4d 100644 --- a/hub/imports/construction/nrel_physics_parameters.py +++ b/hub/imports/construction/nrel_physics_parameters.py @@ -78,7 +78,7 @@ class NrelPhysicsParameters: construction_period_limits = building_archetype.construction_period.split(' - ') if construction_period_limits[1] == 'PRESENT': construction_period_limits[1] = 3000 - if int(construction_period_limits[0]) <= year_of_construction < int(construction_period_limits[1]): + if int(construction_period_limits[0]) <= int(year_of_construction) < int(construction_period_limits[1]): if (str(function) == str(building_archetype.function)) and \ (climate_zone == str(building_archetype.climate_zone)): return building_archetype