We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7950fdb commit 1aafb91Copy full SHA for 1aafb91
src/frequenz/sdk/timeseries/_moving_window.py
@@ -62,6 +62,7 @@ class MovingWindow:
62
window = MovingWindow(
63
size=timedelta(minutes=5),
64
resampled_data_recv=resampled_data_recv,
65
+ input_sampling_period=timedelta(seconds=1),
66
)
67
68
time_start = datetime.now(tz=timezone.utc)
@@ -83,7 +84,11 @@ class MovingWindow:
83
84
85
# create a window that stores two days of data
86
# starting at 1.1.23 with samplerate=1
- window = MovingWindow(size=timedelta(days=2), sample_receiver)
87
+ window = MovingWindow(
88
+ size=timedelta(days=2),
89
+ resampled_data_recv=sample_receiver,
90
91
+ )
92
93
# wait for one full day until the buffer is filled
94
asyncio.sleep(60*60*24)
0 commit comments