Commit 1a16497
committed
Use window method in moving window's getitem magic
The `__getitem__` method in moving window was not working properly. Since its
functionality is already provided by the window method it one can be
called from the getitem magic.
Signed-off-by: cwasicki <[email protected]>1 parent cd6b65c commit 1a16497
File tree
2 files changed
+17
-20
lines changed- src/frequenz/sdk/timeseries
- tests/timeseries
2 files changed
+17
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
370 | 375 | | |
371 | 376 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 377 | + | |
| 378 | + | |
391 | 379 | | |
392 | 380 | | |
393 | | - | |
| 381 | + | |
394 | 382 | | |
395 | 383 | | |
396 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
| 128 | + | |
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
| |||
0 commit comments