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

Improved argument parsing #297

Closed aspeake closed 1 year ago

aspeake commented 1 year ago

Split out ecm_prep.py and run.py argument handling into separate functions to enable easier testing and improve organization/readability.

Summary of updates:

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.