-
Notifications
You must be signed in to change notification settings - Fork 0
/
reg.html
105 lines (86 loc) · 5.15 KB
/
reg.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MISO - Regions</title>
<link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
<link rel="stylesheet" type="text/css" media="screen, print" href="css/slickmap.css" />
<script type="text/javascript"
src="js/dygraph-combined.js"></script>
</head>
<body>
<div id="title">Regions</div>
<h3>Summary</h3>
<p>Hah
</p>
<p>
Economic analysis of the generator node in MISO. The goals will be as follows
<div id="graphdiv"></div>
<center>
<p><b>Show Series:</b></p>
<p>
<table>
<tr>
<td>
<input type=checkbox id="0" checked onClick="change(this)">
<label for="0">Illinois DA</label></br>
<input type=checkbox id="1" checked onClick="change(this)">
<label for="1">Michigan DA</label></br>
<input type=checkbox id="2" checked onClick="change(this)">
<label for="2">Minnesota DA</label></br>
</td>
<td>
<input type=checkbox id="3" onClick="change(this)">
<label for="3">Illinois RT</label></br>
<input type=checkbox id="4" onClick="change(this)">
<label for="4">Michigan RT</label></br>
<input type=checkbox id="5" onClick="change(this)">
<label for="5">Minnesota RT</label></br>
</td>
</tr>
</table>
</p>
<p><b>Rolling Averages:</b></p>
<a href="#" id="day" onClick="daily()">Daily</a>
<a href="#" id="week" onClick="weekly()">Weekly</a>
<a href="#" id="month" onClick="monthly()">Monthly</a>
<a href="#" id="year" onClick="yearly()">Yearly</a>
<div id="datanote">
<a href="data/regions.txt">Data</a>
</div>
</center>
<div id="console">struct group_info init_groups = { .usage = ATOMIC_INIT(2) }; <br> <br>struct group_info *groups_alloc(int gidsetsize){ <br> struct group_info *group_info; <br> int nblocks; <br> int i; <br> <br> <br> nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK; <br> /* Make sure we always allocate at least one indirect block pointer */ <br> nblocks = nblocks ? : 1; <br> group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER); <br> if (!group_info) <br> return NULL; <br> <br> group_info->ngroups = gidsetsize; <br> group_info->nblocks = nblocks; <br> atomic_set(&group_info->usage, 1); <br> <br> if (gidsetsize <= NGROUPS_SMALL) <br> group_info->blocks[0] = group_info->small_block; <br> else { <br> for (i = 0; i < nblocks; i++) { <br> gid_t *b; <br> b = (void *)__get_free_page(GFP_USER); <br> if (!b) <br> goto out_undo_partial_alloc; <br> group_info->blocks[i] = b; <br> } <br> } <br> return group_info; <br></div>
<!--#include file="footer.html" -->
<script type="text/javascript">
g2 = new Dygraph(
document.getElementById("graphdiv"),
"data/regions.txt", // path to CSV file
{
rollPeriod: 7,
showRoller: true,
customBars: true,
ylabel: 'Price ($/MW)',
visibility: [true, true, true, false, false, false],
showRangeSelector: true,
title: 'Time-Series of Regional Prices',
} // options
);
setStatus();
// var anns = g2.annotations();
// anns.push(kwe_annote);
// g2.setAnnotations(anns);
function setStatus() {
document.getElementById("visibility").innerHTML =
g2.visibility().toString();
}
function change(el) {
g2.setVisibility(parseInt(el.id), el.checked);;
setStatus();
}
function daily() { g2.updateOptions({rollPeriod: 1}); };
function weekly() { g2.updateOptions({rollPeriod: 7}); };
function monthly() { g2.updateOptions({rollPeriod: 30}); };
function yearly() { g2.updateOptions({rollPeriod: 365}); };
</script>
</body>
</html>