-
Notifications
You must be signed in to change notification settings - Fork 61
/
template.html
82 lines (69 loc) · 2.12 KB
/
template.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
<html>
<head>
<title>{{ model_name }}</title>
<style>
body {
font-family: Helvetica, Arial, Sans-Serif;
margin: 2em;
}
div.container {
max-width: 750px;
margin: auto;
}
h1, h2 {
border-bottom: 1px solid #eaecef;
padding-bottom: .3em;
}
pre {
background-color: #f6f8fa;
border-radius: 3px;
font-size: 85%;
line-height: 1.45;
overflow: auto;
padding: 16px;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
th, td {
font-size: 0.9em;
border: 1px solid #dfe2e5;
padding: 6px 13px;
}
</style>
</head>
<body>
<div class="container">
{{ content }}
<p>with the variables</p>
<table>
<thead>
<tr>
<th style="text-align:left;">Variable</th>
<th style="text-align:right;">Start</th>
<th style="text-align:left;">Unit</th>
<th>Causality</th>
<th>Variability</th>
<th style="text-align:left;">Description</th>
</tr>
</thead>
<tbody>
{% for variable in model_description.modelVariables %}
<tr>
<td style="text-align:left;">{{ variable.name }}</td>
<td style="text-align:right;">{{ variable.start if variable.start is not none }}</td>
<td style="text-align:left;">{{ get_unit(variable) }}</td>
<td>{{ variable.causality if variable.causality is not none }}</td>
<td>{{ variable.variability if variable.variability is not none }}</td>
<td style="text-align:left;">{{ variable.description if variable.description is not none }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>The plot shows the trajectories of the output variables computed with <a href="https://github.com/modelica/Reference-FMUs/">fmusim</a>.</p>
<pre><code>fmusim {{ params }} --output-file {{ model_name }}_out.csv {{ model_name }}.fmu</code></pre>
<p><img src="result.svg" alt="plot" /></p>
</div>
</body>
</html>