mabuseif commited on
Commit
6fe3322
·
verified ·
1 Parent(s): 12da339

Update app/i_l_data.py

Browse files
Files changed (1) hide show
  1. 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] * 24
 
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] + [0.1]*7,
164
- "weekend": [0.05] * 24
 
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]*8 + [0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0, 1.0, 0.8, 0.5] + [0.3, 0.2, 0.1, 0.1],
174
- "weekend": [0.1]*8 + [0.3, 0.5, 0.6, 0.7, 0.8, 1.0, 1.0, 1.0, 0.8, 0.5] + [0.4, 0.3, 0.2, 0.1]
 
 
175
  },
176
  "industrial": {
177
  "description": "Two shifts (6 AM - 10 PM)",
178
- "weekday": [0.1]*5 + [0.6, 0.8, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
179
- 1.0, 1.0, 0.8, 0.6] + [0.4, 0.3, 0.2, 0.1, 0.1],
180
- "weekend": [0.1]*6 + [0.4]*8 + [0.2]*10
 
181
  },
182
  "public_institutional": {
183
  "description": "Standard institutional hours (8 AM - 6 PM)",
184
- "weekday": [0.1]*6 + [0.5, 0.8, 1.0, 1.0, 1.0, 1.0, 0.8, 0.7,
185
- 0.5, 0.3] + [0.2]*8,
186
- "weekend": [0.1]*24
 
187
  },
188
  "lodging": {
189
  "description": "Lodging facilities (moderate usage all day)",
190
- "weekday": [0.6]*6 + [0.7]*6 + [0.8]*6 + [0.9]*6,
191
- "weekend": [0.7]*6 + [0.8]*6 + [0.9]*6 + [1.0]*6
 
 
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.6, 0.6, 0.5, 0.5, 0.6, 0.7, 0.8, 1.0, 0.8, 0.6,
197
- 0.5, 0.4, 0.3, 0.2],
198
- "weekend": [0.2, 0.3, 0.4, 0.6, 0.8, 0.8, 0.7, 0.7, 0.6, 0.6,
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] * 24,
205
- "weekend": [1.0] * 24
 
 
206
  },
207
  "default": {
208
  "description": "Custom schedule – user-defined",
209
- "weekday": [0.0] * 24,
210
- "weekend": [0.0] * 24
 
 
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