Skip to content

Commit

Permalink
Fix missing value and how json data is read into html file
Browse files Browse the repository at this point in the history
  • Loading branch information
SaeedRazavi committed Nov 1, 2023
1 parent 2389a41 commit a55b505
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions omf/models/restoration.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<div class="shortInput">
<label class="tooltip">Event Information (.json file)<span class="classic">Please see the documentation at the help link for the required format</span></label>
<input id="eventFile" type="file" style="display:none" onchange="handle_files(this.files,'eventData','eventFileName')">
<input id="eventData" name="eventData" value="{{allInputDataDict.eventData}}" type="hidden">
<input id="eventData" name="eventData" value='{{allInputDataDict.eventData}}' type="hidden">
<div>
<label for="eventFile" class="fileButton">Choose File</label>
<input id="eventFileName" name="eventFileName" value="{{allInputDataDict.eventFileName}}" value='' readonly class="uploadFileName">
Expand All @@ -107,7 +107,7 @@
<div class="shortInput">
<label class="tooltip">Settings (.json file)<span class="classic">Please see the documentation at the help link for the required format. You can also select "Yes" for the "Generate Default Settings?" field to run using a generated default settings file.</span></label>
<input id="settingsFile" type="file" style="display:none" onchange="handle_files(this.files,'settingsData','settingsFileName')">
<input id="settingsData" name="settingsData" value="{{allInputDataDict.settingsData}}" type="hidden">
<input id="settingsData" name="settingsData" value='{{allInputDataDict.settingsData}}' type="hidden">
<div>
<label for="settingsFile" class="fileButton">Choose File</label>
<input id="settingsFileName" name="settingsFileName" value="{{allInputDataDict.settingsFileName}}" value='' readonly class="uploadFileName">
Expand All @@ -116,7 +116,7 @@
<div class="shortInput">
<label class="tooltip">Load Priorities (.json file)<span class="classic">Please see the documentation at the help link for the required format of custom load priority file input.</span></label>
<input id="loadPriorityFile" type="file" style="display:none" onchange="handle_files(this.files,'loadPriorityData','loadPriorityFileName')">
<input id="loadPriorityData" name="loadPriorityData" value="{{allInputDataDict.loadPriorityData}}" type="hidden">
<input id="loadPriorityData" name="loadPriorityData" value='{{allInputDataDict.loadPriorityData}}' type="hidden">
<div>
<label for="loadPriorityFile" class="fileButton">Choose File</label>
<input id="loadPriorityFileName" name="loadPriorityFileName" value="{{allInputDataDict.loadPriorityFileName}}" value='' readonly class="uploadFileName">
Expand All @@ -132,7 +132,7 @@
<div class="shortInput">
<label class="tooltip">Cached Output (.json file)<span class="classic">Please see the documentation at the help link for the required format</span></label>
<input id="outputFile" type="file" style="display:none" onchange="handle_files(this.files,'outputData','outputFileName')">
<input id="outputData" name="outputData" value="{{allInputDataDict.outputData}}" type="hidden">
<input id="outputData" name="outputData" value='{{allInputDataDict.outputData}}' type="hidden">
<div>
<label for="outputFile" class="fileButton">Choose File</label>
<input id="outputFileName" name="outputFileName" value="{{allInputDataDict.outputFileName}}" value='' readonly class="uploadFileName">
Expand All @@ -141,7 +141,7 @@
<div class="shortInput">
<label class="tooltip">Microgrid Tagging (.csv file)<span class="classic">Please see the documentation at the help link for the required format custom microgrid tagging file input.</span></label>
<input id="microgridTaggingFile" type="file" style="display:none" onchange="handle_files(this.files,'microgridTaggingData','microgridTaggingFileName')">
<input id="microgridTaggingData" name="microgridTaggingData" value="{{allInputDataDict.microgridTaggingData}}" type="hidden">
<input id="microgridTaggingData" name="microgridTaggingData" value='{{allInputDataDict.microgridTaggingData}}' type="hidden">
<div>
<label for="microgridTaggingFile" class="fileButton">Choose File</label>
<input id="microgridTaggingFileName" name="microgridTaggingFileName" value="{{allInputDataDict.microgridTaggingFileName}}" value='' readonly class="uploadFileName">
Expand All @@ -154,7 +154,7 @@
<div class="shortInput">
<label class="tooltip">Customer Information (.csv file)<span class="classic">Please see the documentation at the help link for the required format</span></label>
<input id="customerFile" type="file" style="display:none" onchange="handle_files(this.files,'customerData','customerFileName')">
<input id="customerData" name="customerData" value="{{allInputDataDict.customerData}}" type="hidden">
<input id="customerData" name="customerData" value='{{allInputDataDict.customerData}}' type="hidden">
<div>
<label for="customerFile" class="fileButton">Choose File</label>
<input id="customerFileName" name="customerFileName" value="{{allInputDataDict.customerFileName}}" value='' readonly class="uploadFileName">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10073,6 +10073,7 @@
"858": {
"object": "loadshape",
"name": "pvscaling1",
"npts": "24",
"mult": "(0,0,0,0,0,0,0,0.084654201,0.4084613,0.676864065,0.859273011,0.976124644,1,0.934483244,0.778657014,0.531155984,0.209112825,0,0,0,0,0,0,0)"
},
"859": {
Expand Down

0 comments on commit a55b505

Please sign in to comment.