Skip to content

Commit fe5875c

Browse files
authored
Clear release notes (#423)
2 parents 783874f + 10aad9f commit fe5875c

1 file changed

Lines changed: 4 additions & 45 deletions

File tree

RELEASE_NOTES.md

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,16 @@
22

33
## Summary
44

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.
5+
<!-- Here goes a general summary of what this release is about -->
66

77
## Upgrading
88

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-
11-
* `BatteryPool` metric streaming interfaces have changed for `soc`, `capacity` and `power_bounds`:
12-
13-
```python
14-
soc_rx = battery_pool.soc() # old
15-
16-
soc_rx = battery_pool.soc.new_receiver() # new
17-
```
18-
19-
* Formulas now follow the new naming scheme.
20-
21-
- `BatteryPool.{power, production_power, consumption_power}`
22-
- `EVChargerPool.{power, production_power, consumption_power}`
23-
- `LogicalMeter`:
24-
- `consumer_power`
25-
- `grid_power`
26-
- `grid_production_power`
27-
- `grid_consumption_power`
28-
- `chp_power`
29-
- `chp_production_power`
30-
- `chp_consumption_power`
31-
32-
* 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.
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.
9+
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
4310

4411
## New Features
4512

46-
* The `MovingWindow` has new public methods that return the oldest and newest timestamp of all stored samples.
47-
48-
* The `PeriodicFeatureExtractor` has been added.
49-
50-
This is a tool to create certain profiles out of periodic reoccurring windows inside a `MovingWindow`.
51-
52-
As an example one can create a daily profile of specific weekdays which will be returned as numpy arrays.
53-
54-
* The `BatteryPool` can now be used to control the batteries in it via the new methods `charge()`, `discharge()`, and `set_power()`.
13+
<!-- Here goes the main new features and examples or instructions on how to use them -->
5514

5615
## Bug Fixes
5716

58-
* Fixed many examples in the documentation.
17+
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->

0 commit comments

Comments
 (0)