Skip to content

Commit 45fba47

Browse files
authored
Merge pull request #1412 from NREL/electric-load-callback-error
Add technology condition to critical load error message
2 parents 25f07f1 + 645d44a commit 45fba47

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

deploy/runtime/ui/Electric Load Data.json

+10-7
Original file line numberDiff line numberDiff line change
@@ -6080,15 +6080,18 @@
60806080
"\t\r",
60816081
"\t// error if user critical load not multiple of 8760\r",
60826082
"\t// or different length than load data\r",
6083-
"\tif ( ${crit_load_type} == 1 )\r",
6083+
"\tif ( is_critical_load_tech ) \r",
60846084
"\t{\r",
6085-
"\t\tif ( mod(#${crit_load_user_data}, 8760) != 0 || #${crit_load_user_data}!=#${load_user_data})\r",
6085+
"\t\tif ( ${crit_load_type} == 1 )\r",
60866086
"\t\t{\r",
6087-
"\t\t\tmsgbox('Electric Load Data Error.\\n'\r",
6088-
"\t\t\t+'Electric load data and critical load data must use the same time step:\\n'\r",
6089-
"\t\t\t+' Electric load time step is ' + 8760/#${load_user_data}*60 + ' minutes.\\n'\r",
6090-
"\t\t\t+' Critical load time step is ' + 8760/#${crit_load_user_data}*60 + ' minutes.\\n\\n'\r",
6091-
"\t\t\t+'See Grid Outage page for critical load data and Electric Load page for electric load data.');\r",
6087+
"\t\t\tif ( mod(#${crit_load_user_data}, 8760) != 0 || #${crit_load_user_data}!=#${load_user_data})\r",
6088+
"\t\t\t{\r",
6089+
"\t\t\t\tmsgbox('Electric Load Data Error.\\n'\r",
6090+
"\t\t\t\t+'Electric load data and critical load data must use the same time step:\\n'\r",
6091+
"\t\t\t\t+' Electric load time step is ' + 8760/#${load_user_data}*60 + ' minutes.\\n'\r",
6092+
"\t\t\t\t+' Critical load time step is ' + 8760/#${crit_load_user_data}*60 + ' minutes.\\n\\n'\r",
6093+
"\t\t\t\t+'See Grid Outage page for critical load data and Electric Load page for electric load data.');\r",
6094+
"\t\t\t}\r",
60926095
"\t\t}\r",
60936096
"\t}\r",
60946097
"}"

0 commit comments

Comments
 (0)