You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make interface for BatteryPool metrics consistent with power methods (frequenz-floss#381)
The `soc`, `capacity`, `power_bounds` methods of the `BatteryPool`
were directly returning receivers. They've now been converted to
properties, from which `new_receiver()` has to be called, to get a
receiver.
New:
``` python
soc_recv = battery_pool.soc.new_receiver()
```
Old:
``` python
soc_recv = battery_pool.soc()
```
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,14 @@ This release drops support for Python versions older than 3.11.
16
16
17
17
* Now `frequenz.sdk.timeseries.Sample` uses a more sensible comparison. Before this release `Sample`s were compared only based on the `timestamp`. This was due to a limitation in Python versions earlier than 3.10. Now that the minimum supported version is 3.11 this hack is not needed anymore and `Sample`s are compared using both `timestamp` and `value` as most people probably expects.
18
18
19
+
*`BatteryPool` metric streaming interfaces have changed for `soc`, `capacity` and `power_bounds`:
20
+
21
+
```python
22
+
soc_rx = battery_pool.soc() # old
23
+
24
+
soc_rx = battery_pool.soc.new_receiver() # new
25
+
```
26
+
19
27
## New Features
20
28
21
29
<!-- Here goes the main new features and examples or instructions on how to use them -->
0 commit comments