Skip to content

Commit 83695aa

Browse files
committed
Update start year, fuel switching to resistance, reporting
The start year was hardcoded in the preparation module and supporting heating/cooling totals data to 2024. For fuel switching measures that convert to electric resistance, keys for the switched to technology remain identical to the baseline for the cooling end use (e.g., if it's a NG + central AC baseline, switched to mseg information would indicate electric resistance heater + central AC). The YML files were updated such that the run module always reports out stock information across scenarios in the BSS batch run.
1 parent 24a6afd commit 83695aa

17 files changed

+1182690
-1136289
lines changed

batch/high.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,4 @@ ecm_prep:
187187
grid_decarb_level: 100by2035
188188
grid_assessment_timing: before
189189
run:
190-
results_directory: null
191-
verbose: false
192-
mkt_fracs: false
193-
trim_results: false
194-
report_stk: false
195-
report_cfs: false
190+
report_stk: true

batch/ineff.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ecm_prep:
1414
"(R) Ref. Case NG Heat, No Cooling",
1515
"(R) Ref. Case Resist. Heat, No Cooling",
1616
"(R) Ref. Case Secondary Electric Heating",
17+
"(R) Ref. Case Secondary Fossil Heating",
1718
"(R) Electric FS (Secondary Fossil Heating)",
1819
"(R) Min. Efficiency ASHP FS (Other Fossil Furnace)",
1920
"(R) Ref. Case Elec. Boiler FS (Other Fossil Boiler)",
@@ -90,9 +91,4 @@ ecm_prep:
9091
detail_brkout: [regions]
9192
alt_ref_carb: MidCase
9293
run:
93-
results_directory: null
94-
verbose: false
95-
mkt_fracs: false
96-
trim_results: false
97-
report_stk: false
98-
report_cfs: false
94+
report_stk: true

batch/mid.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,4 @@ ecm_prep:
188188
grid_decarb_level: 95by2050
189189
grid_assessment_timing: before
190190
run:
191-
results_directory: null
192-
verbose: false
193-
mkt_fracs: false
194-
trim_results: false
195-
report_stk: false
196-
report_cfs: false
191+
report_stk: true

batch/stated.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,4 @@ ecm_prep:
138138
detail_brkout: [regions]
139139
alt_ref_carb: MidCase
140140
run:
141-
results_directory: null
142-
verbose: false
143-
mkt_fracs: false
144-
trim_results: false
145-
report_stk: false
146-
report_cfs: false
141+
report_stk: true

scout/ecm_prep.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ def __init__(self, base_dir, handyfiles, opts):
497497
self.regions = opts.alt_regions
498498
# Load metadata including AEO year range
499499
aeo_yrs = Utils.load_json(handyfiles.metadata)
500-
# Set minimum modeling year to current year
501-
aeo_min = 2018
500+
# Set minimum modeling year
501+
aeo_min = 2024
502502
# Set maximum modeling year
503503
aeo_max = aeo_yrs["max year"]
504504
# Derive time horizon from min/max years
@@ -3175,7 +3175,12 @@ def fill_mkts(self, msegs, msegs_cpl, convert_data, tsv_data_init, opts,
31753175
elif "GSHP" in self.tech_switch_to:
31763176
mskeys_swtch_tech = "GSHP"
31773177
else:
3178-
mskeys_swtch_tech = self.tech_switch_to
3178+
# Set to original cooling tech./fuel if not switching to HP
3179+
if "cooling" in mskeys:
3180+
mskeys_swtch_tech, mskeys_swtch_fuel = [
3181+
mskeys[-2], mskeys[3]]
3182+
else:
3183+
mskeys_swtch_tech = "resistance heat"
31793184
# Water heating
31803185
elif mskeys[4] == "water heating":
31813186
mskeys_swtch_tech = "electric WH"
@@ -3211,7 +3216,12 @@ def fill_mkts(self, msegs, msegs_cpl, convert_data, tsv_data_init, opts,
32113216
mskeys[4] == "cooling":
32123217
mskeys_swtch_tech = "comm_GSHP-cool"
32133218
else:
3214-
mskeys_swtch_tech = self.tech_switch_to
3219+
# Set to original cooling tech./fuel if not switching to HP
3220+
if "cooling" in mskeys:
3221+
mskeys_swtch_tech, mskeys_swtch_fuel = [
3222+
mskeys[-2], mskeys[3]]
3223+
else:
3224+
mskeys_swtch_tech = "elec_boiler"
32153225
# Water heating
32163226
elif mskeys[4] == "water heating":
32173227
mskeys_swtch_tech = "HP water heater"

scout/htcl_totals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(self, handyfiles):
108108
handyfiles.metadata + "': " + str(e)) from None
109109
# Set minimum AEO modeling year
110110
# aeo_min = aeo_yrs["min year"]
111-
aeo_min = datetime.today().year
111+
aeo_min = 2024
112112
# Set maximum AEO modeling year
113113
aeo_max = aeo_yrs["max year"]
114114
# Derive time horizon from min/max years

0 commit comments

Comments
 (0)