Spaces:
Sleeping
Sleeping
Update app/i_l_data.py
Browse files- app/i_l_data.py +33 -23
app/i_l_data.py
CHANGED
|
@@ -148,7 +148,8 @@ DEFAULT_SCHEDULE_TEMPLATES = {
|
|
| 148 |
"description": "Standard office hours (8 AM - 6 PM)",
|
| 149 |
"weekday": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.2, 0.5, 1.0, 1.0, 1.0, 1.0,
|
| 150 |
0.8, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5, 0.3, 0.2, 0.1, 0.1, 0.1],
|
| 151 |
-
"weekend": [0.1
|
|
|
|
| 152 |
},
|
| 153 |
"commercial": {
|
| 154 |
"description": "Retail hours (9 AM - 9 PM)",
|
|
@@ -160,8 +161,9 @@ DEFAULT_SCHEDULE_TEMPLATES = {
|
|
| 160 |
"educational": {
|
| 161 |
"description": "School schedule (8 AM - 3 PM)",
|
| 162 |
"weekday": [0.1, 0.1, 0.1, 0.1, 0.2, 0.5, 0.9, 1.0, 1.0, 1.0, 1.0, 1.0,
|
| 163 |
-
0.8, 0.7, 0.4, 0.2, 0.1
|
| 164 |
-
"weekend": [0.05
|
|
|
|
| 165 |
},
|
| 166 |
"healthcare": {
|
| 167 |
"description": "24/7 full operation (hospitals)",
|
|
@@ -170,44 +172,52 @@ DEFAULT_SCHEDULE_TEMPLATES = {
|
|
| 170 |
},
|
| 171 |
"assembly": {
|
| 172 |
"description": "Intermittent use with afternoon and evening peak",
|
| 173 |
-
"weekday": [0.05
|
| 174 |
-
|
|
|
|
|
|
|
| 175 |
},
|
| 176 |
"industrial": {
|
| 177 |
"description": "Two shifts (6 AM - 10 PM)",
|
| 178 |
-
"weekday": [0.1
|
| 179 |
-
1.0, 1.0, 0.8, 0.6
|
| 180 |
-
"weekend": [0.1
|
|
|
|
| 181 |
},
|
| 182 |
"public_institutional": {
|
| 183 |
"description": "Standard institutional hours (8 AM - 6 PM)",
|
| 184 |
-
"weekday": [0.1
|
| 185 |
-
0.5, 0.3
|
| 186 |
-
"weekend": [0.1
|
|
|
|
| 187 |
},
|
| 188 |
"lodging": {
|
| 189 |
"description": "Lodging facilities (moderate usage all day)",
|
| 190 |
-
"weekday": [0.6
|
| 191 |
-
|
|
|
|
|
|
|
| 192 |
},
|
| 193 |
"transport": {
|
| 194 |
"description": "Transport hubs (early start, taper late night)",
|
| 195 |
-
"weekday": [0.3, 0.4, 0.6, 0.8, 1.0, 1.0, 0.9, 0.9, 0.8, 0.7,
|
| 196 |
-
0.
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
0.5, 0.5, 0.6, 0.7, 0.8, 0.9, 0.9, 1.0, 0.8, 0.6,
|
| 200 |
-
0.4, 0.3, 0.2, 0.1]
|
| 201 |
},
|
| 202 |
"continuous": {
|
| 203 |
"description": "Continuous operation 24/7 (e.g., data centre)",
|
| 204 |
-
"weekday": [1.0
|
| 205 |
-
|
|
|
|
|
|
|
| 206 |
},
|
| 207 |
"default": {
|
| 208 |
"description": "Custom schedule – user-defined",
|
| 209 |
-
"weekday": [0.0
|
| 210 |
-
|
|
|
|
|
|
|
| 211 |
}
|
| 212 |
}
|
| 213 |
|
|
|
|
| 148 |
"description": "Standard office hours (8 AM - 6 PM)",
|
| 149 |
"weekday": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.2, 0.5, 1.0, 1.0, 1.0, 1.0,
|
| 150 |
0.8, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5, 0.3, 0.2, 0.1, 0.1, 0.1],
|
| 151 |
+
"weekend": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
|
| 152 |
+
0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
|
| 153 |
},
|
| 154 |
"commercial": {
|
| 155 |
"description": "Retail hours (9 AM - 9 PM)",
|
|
|
|
| 161 |
"educational": {
|
| 162 |
"description": "School schedule (8 AM - 3 PM)",
|
| 163 |
"weekday": [0.1, 0.1, 0.1, 0.1, 0.2, 0.5, 0.9, 1.0, 1.0, 1.0, 1.0, 1.0,
|
| 164 |
+
0.8, 0.7, 0.4, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1],
|
| 165 |
+
"weekend": [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05,
|
| 166 |
+
0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05]
|
| 167 |
},
|
| 168 |
"healthcare": {
|
| 169 |
"description": "24/7 full operation (hospitals)",
|
|
|
|
| 172 |
},
|
| 173 |
"assembly": {
|
| 174 |
"description": "Intermittent use with afternoon and evening peak",
|
| 175 |
+
"weekday": [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.2, 0.3, 0.4, 0.5,
|
| 176 |
+
0.6, 0.8, 1.0, 1.0, 0.8, 0.5, 0.3, 0.2, 0.1, 0.1, 0.05, 0.05],
|
| 177 |
+
"weekend": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.3, 0.5, 0.6, 0.7,
|
| 178 |
+
0.8, 1.0, 1.0, 1.0, 0.8, 0.5, 0.4, 0.3, 0.2, 0.1, 0.1, 0.1]
|
| 179 |
},
|
| 180 |
"industrial": {
|
| 181 |
"description": "Two shifts (6 AM - 10 PM)",
|
| 182 |
+
"weekday": [0.1, 0.1, 0.1, 0.1, 0.1, 0.6, 0.8, 1.0, 1.0, 1.0, 1.0, 1.0,
|
| 183 |
+
1.0, 1.0, 1.0, 0.8, 0.6, 0.4, 0.3, 0.2, 0.1, 0.1, 0.1, 0.1],
|
| 184 |
+
"weekend": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.4, 0.4, 0.4, 0.4, 0.4, 0.4,
|
| 185 |
+
0.4, 0.4, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2]
|
| 186 |
},
|
| 187 |
"public_institutional": {
|
| 188 |
"description": "Standard institutional hours (8 AM - 6 PM)",
|
| 189 |
+
"weekday": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.5, 0.8, 1.0, 1.0, 1.0, 1.0,
|
| 190 |
+
0.8, 0.7, 0.5, 0.3, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2]
|
| 191 |
+
"weekend": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
|
| 192 |
+
0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
|
| 193 |
},
|
| 194 |
"lodging": {
|
| 195 |
"description": "Lodging facilities (moderate usage all day)",
|
| 196 |
+
"weekday": [0.6, 0.6, 0.6, 0.6, 0.6, 0.6, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7,
|
| 197 |
+
0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9],
|
| 198 |
+
"weekend": [0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8,
|
| 199 |
+
0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
|
| 200 |
},
|
| 201 |
"transport": {
|
| 202 |
"description": "Transport hubs (early start, taper late night)",
|
| 203 |
+
"weekday": [0.3, 0.4, 0.6, 0.8, 1.0, 1.0, 0.9, 0.9, 0.8, 0.7, 0.6, 0.6,
|
| 204 |
+
0.5, 0.5, 0.6, 0.7, 0.8, 1.0, 0.8, 0.6, 0.5, 0.4, 0.3, 0.2],
|
| 205 |
+
"weekend": [0.2, 0.3, 0.4, 0.6, 0.8, 0.8, 0.7, 0.7, 0.6, 0.6, 0.5, 0.5,
|
| 206 |
+
0.6, 0.7, 0.8, 0.9, 0.9, 1.0, 0.8, 0.6, 0.4, 0.3, 0.2, 0.1]
|
|
|
|
|
|
|
| 207 |
},
|
| 208 |
"continuous": {
|
| 209 |
"description": "Continuous operation 24/7 (e.g., data centre)",
|
| 210 |
+
"weekday": [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
|
| 211 |
+
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
|
| 212 |
+
"weekend": [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
|
| 213 |
+
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
|
| 214 |
},
|
| 215 |
"default": {
|
| 216 |
"description": "Custom schedule – user-defined",
|
| 217 |
+
"weekday": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.2, 0.5, 1.0, 1.0, 1.0, 1.0,
|
| 218 |
+
0.8, 1.0, 1.0, 1.0, 1.0, 1.0, 0.5, 0.3, 0.2, 0.1, 0.1, 0.1],
|
| 219 |
+
"weekend": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
|
| 220 |
+
0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]
|
| 221 |
}
|
| 222 |
}
|
| 223 |
|