@@ 36-98 (lines=63) @@ | ||
33 | daily_demand_share = Column(Float(53)) |
|
34 | ||
35 | ||
36 | def temperature_classes(): |
|
37 | return { |
|
38 | -20: 1, |
|
39 | -19: 1, |
|
40 | -18: 1, |
|
41 | -17: 1, |
|
42 | -16: 1, |
|
43 | -15: 1, |
|
44 | -14: 2, |
|
45 | -13: 2, |
|
46 | -12: 2, |
|
47 | -11: 2, |
|
48 | -10: 2, |
|
49 | -9: 3, |
|
50 | -8: 3, |
|
51 | -7: 3, |
|
52 | -6: 3, |
|
53 | -5: 3, |
|
54 | -4: 4, |
|
55 | -3: 4, |
|
56 | -2: 4, |
|
57 | -1: 4, |
|
58 | 0: 4, |
|
59 | 1: 5, |
|
60 | 2: 5, |
|
61 | 3: 5, |
|
62 | 4: 5, |
|
63 | 5: 5, |
|
64 | 6: 6, |
|
65 | 7: 6, |
|
66 | 8: 6, |
|
67 | 9: 6, |
|
68 | 10: 6, |
|
69 | 11: 7, |
|
70 | 12: 7, |
|
71 | 13: 7, |
|
72 | 14: 7, |
|
73 | 15: 7, |
|
74 | 16: 8, |
|
75 | 17: 8, |
|
76 | 18: 8, |
|
77 | 19: 8, |
|
78 | 20: 8, |
|
79 | 21: 9, |
|
80 | 22: 9, |
|
81 | 23: 9, |
|
82 | 24: 9, |
|
83 | 25: 9, |
|
84 | 26: 10, |
|
85 | 27: 10, |
|
86 | 28: 10, |
|
87 | 29: 10, |
|
88 | 30: 10, |
|
89 | 31: 10, |
|
90 | 32: 10, |
|
91 | 33: 10, |
|
92 | 34: 10, |
|
93 | 35: 10, |
|
94 | 36: 10, |
|
95 | 37: 10, |
|
96 | 38: 10, |
|
97 | 39: 10, |
|
98 | 40: 10, |
|
99 | } |
|
100 | ||
101 |
@@ 24-86 (lines=63) @@ | ||
21 | selected_idp_profiles = Column(ARRAY(Integer)) |
|
22 | ||
23 | ||
24 | def temperature_classes(): |
|
25 | return { |
|
26 | -20: 1, |
|
27 | -19: 1, |
|
28 | -18: 1, |
|
29 | -17: 1, |
|
30 | -16: 1, |
|
31 | -15: 1, |
|
32 | -14: 2, |
|
33 | -13: 2, |
|
34 | -12: 2, |
|
35 | -11: 2, |
|
36 | -10: 2, |
|
37 | -9: 3, |
|
38 | -8: 3, |
|
39 | -7: 3, |
|
40 | -6: 3, |
|
41 | -5: 3, |
|
42 | -4: 4, |
|
43 | -3: 4, |
|
44 | -2: 4, |
|
45 | -1: 4, |
|
46 | 0: 4, |
|
47 | 1: 5, |
|
48 | 2: 5, |
|
49 | 3: 5, |
|
50 | 4: 5, |
|
51 | 5: 5, |
|
52 | 6: 6, |
|
53 | 7: 6, |
|
54 | 8: 6, |
|
55 | 9: 6, |
|
56 | 10: 6, |
|
57 | 11: 7, |
|
58 | 12: 7, |
|
59 | 13: 7, |
|
60 | 14: 7, |
|
61 | 15: 7, |
|
62 | 16: 8, |
|
63 | 17: 8, |
|
64 | 18: 8, |
|
65 | 19: 8, |
|
66 | 20: 8, |
|
67 | 21: 9, |
|
68 | 22: 9, |
|
69 | 23: 9, |
|
70 | 24: 9, |
|
71 | 25: 9, |
|
72 | 26: 10, |
|
73 | 27: 10, |
|
74 | 28: 10, |
|
75 | 29: 10, |
|
76 | 30: 10, |
|
77 | 31: 10, |
|
78 | 32: 10, |
|
79 | 33: 10, |
|
80 | 34: 10, |
|
81 | 35: 10, |
|
82 | 36: 10, |
|
83 | 37: 10, |
|
84 | 38: 10, |
|
85 | 39: 10, |
|
86 | 40: 10, |
|
87 | } |
|
88 | ||
89 |