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
58 stars 22 forks source link

Batch runs #373

Closed aspeake closed 1 month ago

aspeake commented 4 months ago

Fixes https://github.com/trynthink/scout/issues/367

Enable running multiple ymls with a single script. This PR adds a new package module run_batch.py that accepts a directory of yml configuration files and runs ecm_prep.py and run.py.

To run: python scout/run_batch.py -b <my_yml_dir>

Summary of updates:

aspeake commented 3 months ago

Depending on timing of https://github.com/trynthink/scout/pull/375, it may be good to update fp.LOGS path based on which yml is being run: https://github.com/trynthink/scout/pull/375#discussion_r1543487672

aspeake commented 3 months ago

@trynthink do you think its important to be more clear about which files in ./generated belong to which yml/yml group? It is not at all apparent right now, but are those files ever important to users for debugging?

aspeake commented 2 months ago

@trynthink do you think its important to be more clear about which files in ./generated belong to which yml/yml group? It is not at all apparent right now, but are those files ever important to users for debugging?

Copy ymls into their ./generated directories and rename directories as "batch_run1", "batch_run2"...?