In the script named
run_scenarios_and_save_results.py
replace “my_API_KEY” with your API key. You can obtain your API key from here (no cost).
- There are two options, both of which run using examples in
run_scenarios_and_save_results.py
- Write to a csv using a template with column headers for desired summary keys (scalar values only)
- Write all inputs, outputs, and dispatch to an Excel spreadsheet
- Both options use the same input file (defined in
run_scenarios_and_save_results.py
)- the default input file is in
inputs/scenarios.csv
- the default input file is in
- Option (a) uses a results template.
- the default csv template is in
outputs/results_template.csv
;- TODO: the “0” row has all available inputs, which one can duplicate to create a new desired scenario (one per row)
outputs/results_template.csv
can be modified with the desired output keys placed in the first row- Note that some output keys are redundant, such as
size_kw
forPV
,Storage
,Wind
, andGenerator
; thus you must use the “pipe” symbol to designate a specific technology:PV|size_kw
for example
- Note that some output keys are redundant, such as
- the default csv template is in
- Option (b) requires an empty Excel spreadsheet template to store the results