-
Notifications
You must be signed in to change notification settings - Fork 205
Expand file tree
/
Copy pathoverwrite_all_defaults.lk
More file actions
43 lines (38 loc) · 1.34 KB
/
overwrite_all_defaults.lk
File metadata and controls
43 lines (38 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
Script that runs through all configurations and writes the calculated defaults to file
Typically only going to be used last thing before a release
*/
outln( 'TECHNOLOGY\tFINANCING\tDEFAULT\tANNUAL_OUTPUT\tLCOE_NOM\tLCOE_REAL\tMESSAGES');
query = true; // ask user whether to overwrite each configuration that has a defaults error
//Close any open projects and create a case to run
close_project();
create_case( 'Flat Plate PV', 'Residential', 'test_case');
//Keep track of the number of configurations
configs = 0;
//loop through all technologies
technologies = list_technologies();
for (t=0; t<#technologies; t++)
{
if ((technologies[t] != "DSPT")
&& (technologies[t] != "Dish Stirling")
&& (technologies[t] != "ISCC")
&& (technologies[t] != "Retired")
&& (technologies[t] != "Generic System")
&& (technologies[t] != "Generic Battery")
&& (technologies[t] != "Generic PVWatts Wind FuelCell Battery Hybrid")
&& (technologies[t] != "MSPTV2"))
{
//Loop through all financing options for that technology
financing = list_financing(technologies[t]);
for(f=0; f<#financing; f++)
{
out( technologies[t] + '\t' + financing[f] + '\n' );
active_case( 'test_case' );
configuration( technologies[t], financing[f]) ;
load_defaults("");
overwrite_defaults();
configs++;
}
}
}
outln( 'Total Number of Configurations: ' + configs);