|
14 | 14 | }, |
15 | 15 | { |
16 | 16 | "cell_type": "code", |
17 | | - "execution_count": null, |
| 17 | + "execution_count": 1, |
18 | 18 | "metadata": {}, |
19 | 19 | "outputs": [ |
20 | 20 | { |
|
25 | 25 | "┃<span style=\"font-weight: bold\"> Property </span>┃<span style=\"font-weight: bold\"> Value </span>┃\n", |
26 | 26 | "┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩\n", |
27 | 27 | "│ System name │ │\n", |
28 | | - "│ Data format version │ 2.0.0 │\n", |
| 28 | + "│ Data format version │ 2.1.3 │\n", |
29 | 29 | "│ Components attached │ 437 │\n", |
30 | 30 | "│ Time Series attached │ 0 │\n", |
31 | 31 | "│ Description │ │\n", |
|
38 | 38 | "┃\u001b[1m \u001b[0m\u001b[1mProperty \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mValue\u001b[0m\u001b[1m \u001b[0m┃\n", |
39 | 39 | "┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩\n", |
40 | 40 | "│ System name │ │\n", |
41 | | - "│ Data format version │ 2.0.0 │\n", |
| 41 | + "│ Data format version │ 2.1.3 │\n", |
42 | 42 | "│ Components attached │ 437 │\n", |
43 | 43 | "│ Time Series attached │ 0 │\n", |
44 | 44 | "│ Description │ │\n", |
|
125 | 125 | }, |
126 | 126 | { |
127 | 127 | "cell_type": "code", |
128 | | - "execution_count": 3, |
| 128 | + "execution_count": 5, |
129 | 129 | "metadata": {}, |
130 | 130 | "outputs": [], |
131 | 131 | "source": [ |
|
151 | 151 | }, |
152 | 152 | { |
153 | 153 | "cell_type": "code", |
154 | | - "execution_count": 7, |
| 154 | + "execution_count": 6, |
155 | 155 | "metadata": {}, |
156 | 156 | "outputs": [], |
157 | 157 | "source": [ |
|
185 | 185 | }, |
186 | 186 | { |
187 | 187 | "cell_type": "code", |
188 | | - "execution_count": 18, |
| 188 | + "execution_count": 7, |
189 | 189 | "metadata": {}, |
190 | 190 | "outputs": [], |
191 | 191 | "source": [ |
|
195 | 195 | "system_changes = [\n", |
196 | 196 | " TrackedChange(\n", |
197 | 197 | " scenario_name=\"scenario_1\",\n", |
198 | | - " update_date=\"2022-01-01\",\n", |
| 198 | + " timestamp=\"2022-01-01 00:00:00\",\n", |
199 | 199 | " edits=[\n", |
200 | 200 | " PropertyEdit(\n", |
201 | 201 | " component_uuid=line.uuid,\n", |
|
206 | 206 | " ),\n", |
207 | 207 | " TrackedChange(\n", |
208 | 208 | " scenario_name=\"scenario_1\",\n", |
209 | | - " update_date=\"2023-01-01\",\n", |
| 209 | + " timestamp=\"2023-01-01 00:00:00\",\n", |
210 | 210 | " additions=[\"aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\"],\n", |
211 | 211 | " ),\n", |
212 | 212 | " TrackedChange(\n", |
213 | 213 | " scenario_name=\"scenario_1\",\n", |
214 | | - " update_date=\"2024-01-01\",\n", |
| 214 | + " timestamp=\"2024-01-01 00:00:00\",\n", |
215 | 215 | " deletions=[load1.uuid],\n", |
216 | 216 | " ),\n", |
217 | 217 | " TrackedChange(\n", |
218 | 218 | " scenario_name=\"scenario_2\",\n", |
219 | | - " update_date=\"2025-01-01\",\n", |
| 219 | + " timestamp=\"2025-01-01 00:00:00\",\n", |
220 | 220 | " deletions=[load2.uuid],\n", |
221 | 221 | " ),\n", |
222 | 222 | "]" |
|
231 | 231 | }, |
232 | 232 | { |
233 | 233 | "cell_type": "code", |
234 | | - "execution_count": 19, |
| 234 | + "execution_count": 8, |
235 | 235 | "metadata": {}, |
236 | 236 | "outputs": [], |
237 | 237 | "source": [ |
|
241 | 241 | "tracked_changes = filter_tracked_changes_by_name_and_date(\n", |
242 | 242 | " system_changes,\n", |
243 | 243 | " scenario_name=\"scenario_1\",\n", |
244 | | - " update_date=datetime.strptime(\"2022-1-1\", \"%Y-%m-%d\").date(),\n", |
| 244 | + " timestamp=datetime.strptime(\"2022-1-1\", \"%Y-%m-%d\"),\n", |
245 | 245 | ")" |
246 | 246 | ] |
247 | 247 | }, |
|
254 | 254 | }, |
255 | 255 | { |
256 | 256 | "cell_type": "code", |
257 | | - "execution_count": null, |
| 257 | + "execution_count": 9, |
258 | 258 | "metadata": {}, |
259 | 259 | "outputs": [ |
260 | 260 | { |
261 | 261 | "data": { |
262 | 262 | "text/html": [ |
263 | 263 | "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-style: italic\"> Updates applied to the system </span>\n", |
264 | | - "┏━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓\n", |
265 | | - "┃<span style=\"font-weight: bold\"> Timestamp </span>┃<span style=\"font-weight: bold\"> Operation </span>┃<span style=\"font-weight: bold\"> UUID </span>┃<span style=\"font-weight: bold\"> Component Type </span>┃<span style=\"font-weight: bold\"> Component Name </span>┃<span style=\"font-weight: bold\"> Connected bus </span>┃<span style=\"font-weight: bold\"> Scenario </span>┃\n", |
266 | | - "┡━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩\n", |
267 | | - "│<span style=\"color: #008080; text-decoration-color: #008080\"> 2022-01-01 </span>│<span style=\"color: #800080; text-decoration-color: #800080\"> Edit </span>│<span style=\"color: #ff00ff; text-decoration-color: #ff00ff\"> 8f98b0f7-e4ff-4a… </span>│<span style=\"color: #008080; text-decoration-color: #008080\"> MatrixImpedanceB… </span>│<span style=\"color: #008000; text-decoration-color: #008000\"> sourcebus_connec… </span>│<span style=\"color: #ff0000; text-decoration-color: #ff0000\"> sourcebus </span>│<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\"> scenario_1 </span>│\n", |
268 | | - "│<span style=\"color: #008080; text-decoration-color: #008080\"> </span>│<span style=\"color: #800080; text-decoration-color: #800080\"> </span>│<span style=\"color: #ff00ff; text-decoration-color: #ff00ff\"> </span>│<span style=\"color: #008080; text-decoration-color: #008080\"> </span>│<span style=\"color: #008000; text-decoration-color: #008000\"> </span>│<span style=\"color: #ff0000; text-decoration-color: #ff0000\"> connector </span>│<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\"> </span>│\n", |
269 | | - "└────────────┴───────────┴───────────────────┴───────────────────┴───────────────────┴───────────────┴────────────┘\n", |
| 264 | + "┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓\n", |
| 265 | + "┃<span style=\"font-weight: bold\"> Timestamp </span>┃<span style=\"font-weight: bold\"> Operation </span>┃<span style=\"font-weight: bold\"> UUID </span>┃<span style=\"font-weight: bold\"> Component Type </span>┃<span style=\"font-weight: bold\"> Component Name </span>┃<span style=\"font-weight: bold\"> Connected bus </span>┃<span style=\"font-weight: bold\"> Scenario </span>┃\n", |
| 266 | + "┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩\n", |
| 267 | + "│<span style=\"color: #008080; text-decoration-color: #008080\"> 2022-01-01 00:00:00 </span>│<span style=\"color: #800080; text-decoration-color: #800080\"> Edit </span>│<span style=\"color: #ff00ff; text-decoration-color: #ff00ff\"> 708915df-8348… </span>│<span style=\"color: #008080; text-decoration-color: #008080\"> MatrixImpedan… </span>│<span style=\"color: #008000; text-decoration-color: #008000\"> sourcebus_con… </span>│<span style=\"color: #ff0000; text-decoration-color: #ff0000\"> sourcebus </span>│<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\"> scenario_1 </span>│\n", |
| 268 | + "│<span style=\"color: #008080; text-decoration-color: #008080\"> </span>│<span style=\"color: #800080; text-decoration-color: #800080\"> </span>│<span style=\"color: #ff00ff; text-decoration-color: #ff00ff\"> </span>│<span style=\"color: #008080; text-decoration-color: #008080\"> </span>│<span style=\"color: #008000; text-decoration-color: #008000\"> </span>│<span style=\"color: #ff0000; text-decoration-color: #ff0000\"> connector </span>│<span style=\"color: #00d7ff; text-decoration-color: #00d7ff\"> </span>│\n", |
| 269 | + "└─────────────────────┴───────────┴────────────────┴────────────────┴────────────────┴───────────────┴────────────┘\n", |
270 | 270 | "</pre>\n" |
271 | 271 | ], |
272 | 272 | "text/plain": [ |
273 | 273 | "\u001b[3m Updates applied to the system \u001b[0m\n", |
274 | | - "┏━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓\n", |
275 | | - "┃\u001b[1m \u001b[0m\u001b[1m Timestamp\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mOperation\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m UUID\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m Component Type\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m Component Name\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mConnected bus\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m Scenario\u001b[0m\u001b[1m \u001b[0m┃\n", |
276 | | - "┡━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩\n", |
277 | | - "│\u001b[36m \u001b[0m\u001b[36m2022-01-01\u001b[0m\u001b[36m \u001b[0m│\u001b[35m \u001b[0m\u001b[35mEdit \u001b[0m\u001b[35m \u001b[0m│\u001b[95m \u001b[0m\u001b[95m8f98b0f7-e4ff-4a…\u001b[0m\u001b[95m \u001b[0m│\u001b[36m \u001b[0m\u001b[36mMatrixImpedanceB…\u001b[0m\u001b[36m \u001b[0m│\u001b[32m \u001b[0m\u001b[32msourcebus_connec…\u001b[0m\u001b[32m \u001b[0m│\u001b[91m \u001b[0m\u001b[91m sourcebus\u001b[0m\u001b[91m \u001b[0m│\u001b[38;5;45m \u001b[0m\u001b[38;5;45mscenario_1\u001b[0m\u001b[38;5;45m \u001b[0m│\n", |
278 | | - "│\u001b[36m \u001b[0m│\u001b[35m \u001b[0m│\u001b[95m \u001b[0m│\u001b[36m \u001b[0m│\u001b[32m \u001b[0m│\u001b[91m \u001b[0m\u001b[91m connector\u001b[0m\u001b[91m \u001b[0m│\u001b[38;5;45m \u001b[0m│\n", |
279 | | - "└────────────┴───────────┴───────────────────┴───────────────────┴───────────────────┴───────────────┴────────────┘\n" |
| 274 | + "┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓\n", |
| 275 | + "┃\u001b[1m \u001b[0m\u001b[1m Timestamp\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mOperation\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m UUID\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mComponent Type\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mComponent Name\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mConnected bus\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1m Scenario\u001b[0m\u001b[1m \u001b[0m┃\n", |
| 276 | + "┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩\n", |
| 277 | + "│\u001b[36m \u001b[0m\u001b[36m2022-01-01 00:00:00\u001b[0m\u001b[36m \u001b[0m│\u001b[35m \u001b[0m\u001b[35mEdit \u001b[0m\u001b[35m \u001b[0m│\u001b[95m \u001b[0m\u001b[95m708915df-8348…\u001b[0m\u001b[95m \u001b[0m│\u001b[36m \u001b[0m\u001b[36mMatrixImpedan…\u001b[0m\u001b[36m \u001b[0m│\u001b[32m \u001b[0m\u001b[32msourcebus_con…\u001b[0m\u001b[32m \u001b[0m│\u001b[91m \u001b[0m\u001b[91m sourcebus\u001b[0m\u001b[91m \u001b[0m│\u001b[38;5;45m \u001b[0m\u001b[38;5;45mscenario_1\u001b[0m\u001b[38;5;45m \u001b[0m│\n", |
| 278 | + "│\u001b[36m \u001b[0m│\u001b[35m \u001b[0m│\u001b[95m \u001b[0m│\u001b[36m \u001b[0m│\u001b[32m \u001b[0m│\u001b[91m \u001b[0m\u001b[91m connector\u001b[0m\u001b[91m \u001b[0m│\u001b[38;5;45m \u001b[0m│\n", |
| 279 | + "└─────────────────────┴───────────┴────────────────┴────────────────┴────────────────┴───────────────┴────────────┘\n" |
280 | 280 | ] |
281 | 281 | }, |
282 | 282 | "metadata": {}, |
|
295 | 295 | }, |
296 | 296 | { |
297 | 297 | "cell_type": "code", |
298 | | - "execution_count": 21, |
| 298 | + "execution_count": 10, |
299 | 299 | "metadata": {}, |
300 | 300 | "outputs": [ |
301 | 301 | { |
|
306 | 306 | "┃<span style=\"font-weight: bold\"> Property </span>┃<span style=\"font-weight: bold\"> Value </span>┃\n", |
307 | 307 | "┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩\n", |
308 | 308 | "│ System name │ │\n", |
309 | | - "│ Data format version │ 2.0.0 │\n", |
| 309 | + "│ Data format version │ 2.1.3 │\n", |
310 | 310 | "│ Components attached │ 437 │\n", |
311 | 311 | "│ Time Series attached │ 0 │\n", |
312 | 312 | "│ Description │ │\n", |
|
319 | 319 | "┃\u001b[1m \u001b[0m\u001b[1mProperty \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mValue\u001b[0m\u001b[1m \u001b[0m┃\n", |
320 | 320 | "┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩\n", |
321 | 321 | "│ System name │ │\n", |
322 | | - "│ Data format version │ 2.0.0 │\n", |
| 322 | + "│ Data format version │ 2.1.3 │\n", |
323 | 323 | "│ Components attached │ 437 │\n", |
324 | 324 | "│ Time Series attached │ 0 │\n", |
325 | 325 | "│ Description │ │\n", |
|
398 | 398 | }, |
399 | 399 | { |
400 | 400 | "cell_type": "code", |
401 | | - "execution_count": 22, |
| 401 | + "execution_count": null, |
402 | 402 | "metadata": {}, |
403 | 403 | "outputs": [ |
404 | 404 | { |
|
533 | 533 | ")\n", |
534 | 534 | "new_system.info()" |
535 | 535 | ] |
536 | | - }, |
537 | | - { |
538 | | - "cell_type": "code", |
539 | | - "execution_count": null, |
540 | | - "metadata": {}, |
541 | | - "outputs": [], |
542 | | - "source": [] |
543 | 536 | } |
544 | 537 | ], |
545 | 538 | "metadata": { |
546 | 539 | "kernelspec": { |
547 | | - "display_name": "gdm2", |
| 540 | + "display_name": "gdm", |
548 | 541 | "language": "python", |
549 | 542 | "name": "python3" |
550 | 543 | }, |
|
0 commit comments