@@ -97,7 +97,7 @@ def get_value(name):
97
97
98
98
# check if this is a pint, if so get value
99
99
if isinstance (gross_floor_area , Quantity ):
100
- gross_floor_area = gross_floor_area .to_base_units (). magnitude
100
+ gross_floor_area = gross_floor_area .magnitude
101
101
102
102
# calc eui
103
103
if total_eui :
@@ -119,7 +119,7 @@ def get_value(name):
119
119
if target_gas_eui is None or target_electric_eui is None :
120
120
return "Missing Data (ASHRAE Target Gas EUI/ASHRAE Target Electric EUI)"
121
121
else :
122
- benchmark = ( float (target_gas_eui ) + float (target_electric_eui )) / 0.8
122
+ total_target_eui = float (target_gas_eui ) + float (target_electric_eui )
123
123
124
124
# if young building:
125
125
retrofit_threshold_year = config .get ("year_built_threshold" )
@@ -134,7 +134,7 @@ def get_value(name):
134
134
# has_bas = ddc_control_panel_count.order_by("ddc_control_panel_count").first().ddc_control_panel_count > 0
135
135
136
136
fair_actual_to_benchmark_eui_ratio = config .get ("fair_actual_to_benchmark_eui_ratio" )
137
- if ((eui / benchmark ) > fair_actual_to_benchmark_eui_ratio ) and has_bas is True :
137
+ if ((eui / total_target_eui ) > fair_actual_to_benchmark_eui_ratio ) and has_bas is True :
138
138
return "Re-tuning"
139
139
else :
140
140
return "NO DER project recommended"
@@ -146,7 +146,7 @@ def get_value(name):
146
146
# if big and actual to benchmark eui ratio is "poor"
147
147
poor_actual_to_benchmark_eui_ratio = config .get ("poor_actual_to_benchmark_eui_ratio" )
148
148
building_sqft_threshold = config .get ("building_sqft_threshold" )
149
- if ((eui / benchmark ) > poor_actual_to_benchmark_eui_ratio ) and gross_floor_area > building_sqft_threshold :
149
+ if ((eui / total_target_eui ) > poor_actual_to_benchmark_eui_ratio ) and gross_floor_area > building_sqft_threshold :
150
150
return "Deep Energy Retrofit"
151
151
152
152
# for this next step, we will need condition_index
0 commit comments