trynthink / scout

A tool for estimating the future energy use, carbon emissions, and capital and operating cost impacts of energy efficiency and demand flexibility technologies in the U.S. residential and commercial building sectors.
https://scout.energy.gov
Other
61 stars 23 forks source link

Error in plot.py #281

Closed dewittpe closed 2 years ago

dewittpe commented 2 years ago

Working from commit dc4d4ae

$ python ecm_prep.py --detail_brkout --alt_regions

Enter 1 to use an EIA NEMS Electricity Market Module (EMM) geographical breakdown,
2 to use a state geographical breakdown,
or 3 to use an AIA climate zone geographical breakdown: 1

Enter 1 to report detailed breakouts for regions and building types,
2 to report detailed breakouts for regions only, or
3 to report detailed breakouts for building types only: 1

Importing supporting data...Complete
Initializing measures...Retrieving custom savings shape data for measure Best Com. ASHP, Env., PC (EE+DF–RST) CC...Data import complete
Retrieving custom savings shape data for measure Best Com. ASHP, Env., PC (EE+DF–FS) CC...Data import complete

[omitting all the output messages]

All ECM updates complete; finalizing data...Writing output data...
--- Runtime: 01:46:49.13 (HH:MM:SS.mm) ---
$ time python run.py
ECM attributes data load complete
Importing ECM competition data...Data load complete
Calculating uncompeted 'Technical potential' savings/metrics...Calculations complete
Competing ECMs for 'Technical potential' scenario...Competition complete
Calculating competed 'Technical potential' savings/metrics...Calculations complete
Finalizing results...Results finalized
Calculating uncompeted 'Max adoption potential' savings/metrics...Calculations complete
Competing ECMs for 'Max adoption potential' scenario...Competition complete
Calculating competed 'Max adoption potential' savings/metrics...Calculations complete
Finalizing results...Results finalized
All calculations complete; writing output data...Data writing complete
Plotting output data...Traceback (most recent call last):
  File "/Users/peterdewitt/NREL/deleteme/scout/run.py", line 5057, in <module>
    main(base_dir)
  File "/Users/peterdewitt/NREL/deleteme/scout/run.py", line 5030, in main
    run_plot(meas_summary, a_run, handyvars, measures_objlist, regions)
  File "/Users/peterdewitt/NREL/deleteme/scout/plots.py", line 866, in run_plot
    results_database_agg[czone]
KeyError: 'MISW'
python run.py  1453.93s user 341.08s system 82% cpu 36:17.32 total