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
- Add missing release notes about new metric naming
- Add missing release note about removing `sympy`
- Remove mention to the (internal) ring buffer
- Improve release notes summary
- Add fixing of examples to the release notes
- Reorder release notes to have the most important changes first
- Add missing release note about the BatteryPool control interface
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+28-11Lines changed: 28 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,12 @@
2
2
3
3
## Summary
4
4
5
-
This release drops support for Python versions older than 3.11.
5
+
This release main introduces the new `PeriodicFeatureExtractor`, the control interface to the `BatteryPool`, and a new naming scheme for retrieving `LogicalMeter` and `BatteryPool` metrics. It also drops support for Python versions older than 3.11.
6
6
7
7
## Upgrading
8
8
9
9
* Now Python 3.11 is the minimum supported version. All users must upgrade to Python 3.11 (including virtual environments used for development).
10
10
11
-
* Now `float` is used everywhere for representing power (before power metrics were `float` but setting power was done using `int`).
12
-
*`frequenz.sdk.actor.power_distributing`: the `power` attribute of the `Request` class has been updated from `int` to a `float`.
13
-
*`frequenz.sdk.microgrid`: the `set_power()` method of both the `MicrogridApiClient` and `MicrogridGrpcClient` classes now expect a `float` value for the `power_w` parameter instead of `int`.
14
-
15
-
* The `LogicalMeter` no longer takes a `component_graph` parameter.
16
-
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
-
19
11
*`BatteryPool` metric streaming interfaces have changed for `soc`, `capacity` and `power_bounds`:
20
12
21
13
```python
@@ -24,18 +16,43 @@ This release drops support for Python versions older than 3.11.
* A power request can now be forced by setting the `include_broken` attribute. This is especially helpful as a safety measure when components appear to be failing, such as when battery metrics are unavailable. Note that applications previously relying on automatic fallback to all batteries when none of them was working will now require the `include_broken` attribute to be explicitly set in the request.
28
33
34
+
* Now `float` is used everywhere for representing power (before power metrics were `float` but setting power was done using `int`).
35
+
*`frequenz.sdk.actor.power_distributing`: the `power` attribute of the `Request` class has been updated from `int` to a `float`.
36
+
*`frequenz.sdk.microgrid`: the `set_power()` method of both the `MicrogridApiClient` and `MicrogridGrpcClient` classes now expect a `float` value for the `power_w` parameter instead of `int`.
37
+
38
+
* The `LogicalMeter` no longer takes a `component_graph` parameter.
39
+
40
+
* 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.
41
+
42
+
* The dependency to `sympy` was unused and thus removed from the SDK. If you used it indirectly without declaring the dependency in your project you should do it now.
43
+
29
44
## New Features
30
45
31
-
* The `MovingWindow`as well as the OrderedRingBuffer are having new public methods that are returning the oldest and newest timestamp of all stored samples.
46
+
* The `MovingWindow`has new public methods that return the oldest and newest timestamp of all stored samples.
32
47
33
48
* The `PeriodicFeatureExtractor` has been added.
34
49
35
50
This is a tool to create certain profiles out of periodic reoccurring windows inside a `MovingWindow`.
36
51
37
52
As an example one can create a daily profile of specific weekdays which will be returned as numpy arrays.
38
53
54
+
* The `BatteryPool` can now be used to control the batteries in it via the new methods `charge()`, `discharge()`, and `set_power()`.
55
+
39
56
## Bug Fixes
40
57
41
-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
0 commit comments