Fix getitem magic in moving window #676
Labels
part:data-pipeline
Affects the data pipeline
priority:❓
We need to figure out how soon this should be addressed
type:bug
Something isn't working
Milestone
What happened?
The current getitem magic in the moving window has several bugs, e.g.
TypeError
is raised for a call ofwindow[-1:]
instead of this test casefrequenz-sdk-python/tests/timeseries/test_moving_window.py
Line 111 in 892403e
What did you expect instead?
Full list-type indexing support (without steps) of the getitem magic.
Affected version(s)
No response
Affected part(s)
Data pipeline (part:data-pipeline)
Extra information
With #672 and using the window method from #668 in the case of slices it should be possible to fix these problems.
The text was updated successfully, but these errors were encountered: