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.
Split out ecm_prep.py and run.py argument handling into separate functions to enable easier testing and improve organization/readability.
Summary of updates:
ecm_prep.py: new imported file ecm_prep_args.py to handle argument definitions, parsing, and user input requests.
ecm_prep.py: new optional argument alt_regions_option to circumvent the need for a user response to specify EMM, AIA or State breakdowns.
run.py: avoid unnecessary global variable opts, instead directly pass this to main() and Engine.__init__()
run.py tests: updates required to match new Engine() constructor params
These updates enable easier access to the main() functions from other scripts and provide user inputs, making it easier to implement integration testing, profiling, and unit tests for argument parsing. Functionality is unchanged; PRs that aim to organize the project into modules and/or subpackages may alter this methods further in the future.
Split out ecm_prep.py and run.py argument handling into separate functions to enable easier testing and improve organization/readability.
Summary of updates:
ecm_prep_args.py
to handle argument definitions, parsing, and user input requests.alt_regions_option
to circumvent the need for a user response to specify EMM, AIA or State breakdowns.opts
, instead directly pass this tomain()
andEngine.__init__()
Engine()
constructor paramsThese updates enable easier access to the
main()
functions from other scripts and provide user inputs, making it easier to implement integration testing, profiling, and unit tests for argument parsing. Functionality is unchanged; PRs that aim to organize the project into modules and/or subpackages may alter this methods further in the future.