-
Couldn't load subscription status.
- Fork 20
Description
When asking the MovingWindow for a subwindow we might return a slice of the buffer, that means a reference to the underlying numpy based ringbuffer.
There are cases, e.g. when dealing with small window sizes and high sample rates, where the data might get updated from the data stream before the requested subwindow has been processed.
As a solution we want to tell the MovingWindow to return a copy of the data instead of a reference. In order to do that we need to add an interface, such that users can control copy behavior.
We might implement a method for the MovingWindow as follows.
window(
self,
start: datetime,
end: datetime,
fill_gaps: Optional[Quantity] = None,
force_copy: Bool = False
)This method should return a sorted numpy array that holds the resampled data from start to end and fills the gaps with the Value that is provided by fill_gaps.
Summary of the (ongoing) work related to this and what I see essential for v1.0.
Essential for this issue:
-
For v1.0:
- Treat NaN as gap in ring buffer #641
- Add capacity, oldest and newest timestamp to moving window #598
- Fixes on copy behavior in ring buffer window method #638
- Support int indices and slice index behavior in ring buffer and moving window #668
- Fix single element access for moving window #672
- Fix getitem magic in moving window #676 (If not ready for v1.0 getitem magic should be removed before the release)
-
Post v1.0?
Related to moving window:
Metadata
Metadata
Labels
Type
Projects
Status