-
Notifications
You must be signed in to change notification settings - Fork 55
/
main.html
251 lines (205 loc) · 10.6 KB
/
main.html
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{% macro navlink(display, tab_id, style='') %}
<a href="#"
class="tablink {{ style }}"
onclick="openTab('{{ tab_id }}')"
>{{ display }}</a>
{% endmacro %}
{% macro cdn_jslib(local_filename, cdn_url, libobj, integrity=None) %}
<script src="{{ cdn_url }}" crossorigin="anonymous"
{% if integrity is not none %}
integrity="{{ integrity }}"
{% endif %}
></script>
<script>jsFallbackFromCDN('{{ libobj }}', '{{ local_filename }}');</script>
{% endmacro %}
{% macro embed_jslib(local_filename) %}
<!-- INSERTED {{ local_filename }} -->
<script type="text/javascript">{{ offline_file(local_filename) }}</script>
{% endmacro %}
{% macro cdn_stylesheet(local_filename, cdn_url) %}
<link rel="stylesheet" href="{{ cdn_url }}">
<link rel="stylesheet" href="{{ static_ref(local_filename) }}">
{% endmacro %}
{% macro embed_stylesheet(local_filename) %}
<!-- INSERTED {{ local_filename }} -->
<style>{{ offline_file(local_filename) }}</style>
{% endmacro %}
<!doctype html>
<html>
<head>
<title>{{ title }}</title>
<meta charset="utf-8">
<link rel="icon" type="image/png" sizes="16x16" href="{{ static_ref('images/favicon-16x16.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ static_ref('images/favicon-32x32.png') }}">
<link rel="icon" type="image/png" sizes="96x96" href="{{ static_ref('images/favicon-96x96.png') }}">
<script>
function jsFallbackFromCDN(libname_to_check, localFilename) {
var parts = libname_to_check.split('.')
if (((parts.length == 1) && (typeof window[parts[0]] == "undefined")) ||
((parts.length == 2) && (typeof window[parts[0]][parts[1]] == "undefined"))) {
console.log(`***Failed to load ${localFilename} from CDN. Falling back to local offline version.***`);
document.write(unescape(`%3Cscript src="./offline/${localFilename}" type="text/javascript"%3E%3C/script%3E`));
}
}
</script>
{{ cdn_jslib("jquery-3.2.1.min.js", "https://code.jquery.com/jquery-3.2.1.min.js", "jQuery",
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=") }}
{{ cdn_jslib("jquery-ui.min.js", "https://code.jquery.com/ui/1.12.1/jquery-ui.min.js", "jQuery.ui",
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=") }}
{{ cdn_jslib("plotly-latest.min.js", "https://cdn.plot.ly/plotly-latest.min.js", "Plotly") }}
{{ cdn_jslib("katex.min.js", "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.js", "katex") }}
{{ cdn_jslib("auto-render.min.js", "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/contrib/auto-render.min.js", "renderMathInElement") }}
{{ embed_jslib("pygsti_plotly_ex.js") }}
{{ embed_jslib("pygsti_dashboard.js") }}
{{ cdn_stylesheet("smoothness-jquery-ui.css", "https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css") }}
{{ cdn_stylesheet("katex.css", "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css") }}
{{ embed_stylesheet("pygsti_dataviz.css") }}
{{ embed_stylesheet("pygsti_dashboard.css") }}
{{ embed_stylesheet("pygsti_fonts.css") }}
</head>
<body>
<div id="content-wrapper">
<div id="theSidenav" class="sidenav loadable notloaded">
<a href="javascript:void(0)" id="tackbtn" title="Toggle navigation bar auto-hide" onclick="tackNav()">⊛</a>
<div class="linkgroup">
{{ navlink('Summary', 'Summary', style='linkgroupheading active') }}
</div>
{% if config['BrevityLT4'] %}
<div class="linkgroup">
<p class="linkgroupheading" onclick="$(this).next('a')[0].click();">Model Violation</p>
{{ navlink('Overview', 'Goodness') }}
{% if config['BrevityLT1'] %}
{{ navlink('Per-sequence detail', 'Goodness_colorboxplot') }}
{% if config['ShowScaling'] %}
{{ navlink('Robust data scaling', 'Goodness_scaling') }}
{% endif %}
{% if config['ShowUnmodeledError'] %}
{{ navlink('Unmodeled error', 'Goodness_unmodeled') }}
{% endif %}
{% endif %}
</div>
<div class="linkgroup">
<p class="linkgroupheading" onclick="$(this).next('a')[0].click();">Gauge Invariant Error Metrics</p>
{{ navlink('Overview', 'GaugeInvariants_gates') }}
{% if config['BrevityLT3'] %}
{{ navlink('Germs Detail', 'GaugeInvariants_germs') }}
{% endif %}
{% if config['CompareDatasets'] %}
{{ navlink('Data Comparison', 'DataComparison') }}
{% endif %}
{% if config['IdleTomography'] %}
{{ navlink('Idle Tomography', 'IdleTomography') }}
{% endif %}
</div>
<div class="linkgroup">
<p class="linkgroupheading" onclick="$(this).next('a')[0].click();">Gauge Dependent Error Metrics</p>
{{ navlink('Overview', 'GaugeVariants') }}
{{ navlink('Raw Estimates', 'GaugeVariants_raw') }}
{{ navlink('Gate Decompositions', 'GaugeVariants_decomp') }}
{{ navlink('Gate Error Generators', 'GaugeVariants_errgen') }}
</div>
{% if config['BrevityLT2'] %}
<div class="linkgroup">
<p class="linkgroupheading" onclick="$(this).next('a')[0].click();">For Reference</p>
{{ navlink('Input Reference', 'Input') }}
{{ navlink('System Reference', 'Meta') }}
</div>
{% endif %}
{% endif %}
<div class="linkgroup">
{{ navlink('Help', 'Help', style='linkgroupheading') }}
</div>
<!-- TODO -->
{{ top_switchboard|render }}
<!-- TODO -->
{{ final_model_gaugeopt_params_table|render }}
</div>
<div id="main-wrapper">
<header class="header" role="banner">
<H1 class="title">{{ title }}</h1>
<h2 class="author">generated by pyGSTi on {{ date }}</h2>
</header>
<div id="main">
<!-- TODO clean this up / generalize -->
<div id="Summary" class="tabcontent loadable notloaded active">
{% include 'tabs/Summary.html' %}
</div>
{% if config['BrevityLT4'] %}
<div id="Goodness" class="tabcontent loadable notloaded">
{% include 'tabs/Goodness.html' %}
</div>
{% if config['BrevityLT1'] %}
<div id="Goodness_colorboxplot" class="tabcontent loadable notloaded">
{% include 'tabs/Goodness_colorboxplot.html' %}
</div>
{% if config['ShowScaling'] %}
<div id="Goodness_scaling" class="tabcontent loadable notloaded">
{% include 'tabs/Goodness_scaling.html' %}
</div>
{% endif %}
{% if config['ShowUnmodeledError'] %}
<div id="Goodness_unmodeled" class="tabcontent loadable notloaded">
{% include 'tabs/Goodness_unmodeled.html' %}
</div>
{% endif %}
{% endif %}
<div id="GaugeInvariants_gates" class="tabcontent loadable notloaded">
{% include 'tabs/GaugeInvariants_gates.html' %}
</div>
{% if config['BrevityLT3'] %}
<div id="GaugeInvariants_germs" class="tabcontent loadable notloaded">
{% include 'tabs/GaugeInvariants_germs.html' %}
</div>
{% endif %}
{% if config['CompareDatasets'] %}
<div id="DataComparison" class="tabcontent loadable notloaded">
{% include 'tabs/DataComparison.html' %}
</div>
{% endif %}
{% if config['IdleTomography'] %}
<div id="IdleTomography" class="tabcontent loadable notloaded">
{% include 'tabs/IdleTomography.html' %}
</div>
{% endif %}
<div id="GaugeVariants" class="tabcontent loadable notloaded">
{% include 'tabs/GaugeVariants.html' %}
</div>
<div id="GaugeVariants_raw" class="tabcontent loadable notloaded">
{% include 'tabs/GaugeVariants_raw.html' %}
</div>
<div id="GaugeVariants_decomp" class="tabcontent loadable notloaded">
{% include 'tabs/GaugeVariants_decomp.html' %}
</div>
<div id="GaugeVariants_errgen" class="tabcontent loadable notloaded">
{% include 'tabs/GaugeVariants_errgen.html' %}
</div>
{% if config['BrevityLT2'] %}
<div id="Input" class="tabcontent loadable notloaded">
{% include 'tabs/Input.html' %}
</div>
<div id="Meta" class="tabcontent loadable notloaded">
{% include 'tabs/Meta.html' %}
</div>
{% endif %}
<div id="Help" class="tabcontent loadable notloaded">
{% include 'tabs/Help.html' %}
</div>
{% endif %}
{% if not config['embed_figures'] %}
{% include 'tabs/AjaxError.html' %}
{% endif %}
</div>
<div id="status">
No message
</div>
</div>
</div>
</body>
<script>
$(document).ready(function() {
initNav(); // so sidebar is loaded and can hide/show
initBanner(); // so banner can hide/show
openTab('Summary'); // the active tab (see 'active' class above)
});
</script>
</html>