Skip to content

Commit 914788d

Browse files
committed
Adjust prep to manage minimum efficiency flag
1 parent 864882c commit 914788d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

scout/ecm_prep.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,19 +2303,19 @@ def __init__(
23032303
self.market_exit_year) > (int(
23042304
self.handyvars.aeo_years[-1]) + 1)):
23052305
self.market_exit_year = int(self.handyvars.aeo_years[-1]) + 1
2306-
# Check for flag that measure should be removed from market under
2307-
# user-specified increased in global minimum performance floor
2306+
# Check for flag that measure is of a minimum efficiency level. Such measures will be
2307+
# removed from market under user-specified increased in global minimum performance floor
23082308
try:
2309-
self.global_exit_flag
2309+
self.min_eff_elec_flag
23102310
except AttributeError:
2311-
self.global_exit_flag = None
2311+
self.min_eff_elec_flag = None
23122312
# If a global year by which an elevated performance floor is
23132313
# implemented has been imposed by the user and the measure is flagged
2314-
# for removal under the global minimum floor, or the measure has been
2315-
# added as a reference case copy of existing measures in the analysis,
2314+
# for removal under an increase in the global minimum efficiency floor, or the measure has
2315+
# been added as a reference case copy of existing measures in the analysis,
23162316
# remove measure from the market once elevated floor goes into effect
23172317
if self.usr_opts["floor_start"] is not None and (
2318-
self.global_exit_flag or (
2318+
self.min_eff_elec_flag is not None or (
23192319
self.usr_opts["add_typ_eff"] is not False and
23202320
any([x in self.name for x in ["Ref. Case", "Min. Eff."]]))):
23212321
self.market_exit_year = self.usr_opts["floor_start"]

tests/ecm_prep_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128354,12 +128354,12 @@ def setUpClass(cls):
128354128354
"name", "remove", "retro_rate", 'tech_switch_to', 'technology',
128355128355
'end_use', 'technology_type', "htcl_tech_link",
128356128356
'yrs_on_mkt', 'measure_type', 'usr_opts', 'fuel_switch_to',
128357-
'hp_convert_flag', 'add_cool_anchor_tech', 'global_exit_flag'],
128357+
'hp_convert_flag', 'add_cool_anchor_tech', 'min_eff_elec_flag'],
128358128358
["market_entry_year", "market_exit_year", "markets",
128359128359
"name", "remove", "retro_rate", 'tech_switch_to', 'technology',
128360128360
'end_use', 'technology_type', "htcl_tech_link",
128361128361
'yrs_on_mkt', 'measure_type', 'usr_opts', 'fuel_switch_to',
128362-
'hp_convert_flag', 'add_cool_anchor_tech', 'global_exit_flag'],
128362+
'hp_convert_flag', 'add_cool_anchor_tech', 'min_eff_elec_flag'],
128363128363
['benefits', 'bldg_type', 'climate_zone', 'end_use', 'fuel_type',
128364128364
'tech_switch_to', "htcl_tech_link", "technology",
128365128365
"technology_type", "market_entry_year", "market_exit_year",

0 commit comments

Comments
 (0)