Skip to content

Commit

Permalink
Remove debug notice box, uncheck box if grid outage gets turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
brtietz committed Nov 9, 2023
1 parent 6a92e99 commit 6f59b83
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions deploy/runtime/ui/Battery REopt Optimization.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@
"\tif ( is_crit() && is_grid_outage() ) {",
"\t\tsize_outage = value('reopt_consider_outage');",
"\t}",
"\tif ( size_outage ) {msgbox('howdy doody');}",
"\t",
"\tbatt_kw_original = value('batt_bank_power');",
"\tbatt_kwh_original = value('batt_bank_size_ui');",
Expand Down Expand Up @@ -400,8 +399,14 @@
"",
"};",
"",
"function enable_consider_grid_outage() {",
"\tenable('reopt_consider_outage', is_crit() && is_grid_outage() );",
"function enable_consider_grid_outage() {\r",
"\toutage_setup = is_crit() && is_grid_outage();",
"\tenable('reopt_consider_outage', outage_setup);\r",
"\t// Turn off size outage variable if outage is not set\r",
"\tsize_outage = value('reopt_consider_outage');\r",
"\tif (!outage_setup && size_outage) {\r",
"\t\tvalue('reopt_consider_outage', false);\r",
"\t}\r",
"}"
]
}

0 comments on commit 6f59b83

Please sign in to comment.