Releases: llucax/frequenz-sdk-python
v0.21.0
Release Notes
Summary
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.
Upgrading
-
Now Python 3.11 is the minimum supported version. All users must upgrade to Python 3.11 (including virtual environments used for development).
-
BatteryPool
metric streaming interfaces have changed forsoc
,capacity
andpower_bounds
:soc_rx = battery_pool.soc() # old soc_rx = battery_pool.soc.new_receiver() # new
-
Formulas now follow the new naming scheme.
BatteryPool.{power, production_power, consumption_power}
EVChargerPool.{power, production_power, consumption_power}
LogicalMeter
:consumer_power
grid_power
grid_production_power
grid_consumption_power
chp_power
chp_production_power
chp_consumption_power
-
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 theinclude_broken
attribute to be explicitly set in the request. -
Now
float
is used everywhere for representing power (before power metrics werefloat
but setting power was done usingint
).frequenz.sdk.actor.power_distributing
: thepower
attribute of theRequest
class has been updated fromint
to afloat
.frequenz.sdk.microgrid
: theset_power()
method of both theMicrogridApiClient
andMicrogridGrpcClient
classes now expect afloat
value for thepower_w
parameter instead ofint
.
-
The
LogicalMeter
no longer takes acomponent_graph
parameter. -
Now
frequenz.sdk.timeseries.Sample
uses a more sensible comparison. Before this releaseSample
s were compared only based on thetimestamp
. 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 andSample
s are compared using bothtimestamp
andvalue
as most people probably expects. -
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.
New Features
-
The
MovingWindow
has new public methods that return the oldest and newest timestamp of all stored samples. -
The
PeriodicFeatureExtractor
has been added.This is a tool to create certain profiles out of periodic reoccurring windows inside a
MovingWindow
.As an example one can create a daily profile of specific weekdays which will be returned as numpy arrays.
-
The
BatteryPool
can now be used to control the batteries in it via the new methodscharge()
,discharge()
, andset_power()
.
Bug Fixes
- Fixed many examples in the documentation.
What's Changed
- ci: Fix building of tags by @leandro-lucarella-frequenz in #5
New Contributors
- @leandro-lucarella-frequenz made their first contribution in #5
Full Changelog: https://github.com/leandro-lucarella-frequenz/frequenz-sdk-python/commits/v0.21.0
v0.11.0-alpha01
frequenz-sdk
Release Notes
Summary
This is the first public open source release based on the internal SDK version v0.10.0. There are no breaking changes in this release, only changes to the project structure, metadata, and automation. Packages are also now uploaded to PyPI as frequenz-sdk
, so this project now can be installed normally via pip
:
python -m pip install frequenz-sdk
The GitHub issues were also improved, adding templates for reporting issues and requesting features. Users are also pointed to the Discussion forums when trying to open an issue if they have questions instead. Also many labels are assigned automatically on issue and pull request creation.
Upgrading
Even if there are no breaking changes, if when upgrading you see this error in
your local environment:
ERROR: Project file:///home/luca/devel/frequenz-sdk-python has
a 'pyproject.toml' and its build backend is missing the 'build_editable'
hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be
installed in editable mode. Consider using a build backend that supports PEP
660.
You might need to update the dependencies in you virtual environment (for
example python -m pip install -U -e .)
Full Changelog: https://github.com/leandro-lucarella-frequenz/frequenz-sdk-python/commits/v0.11.0-alpha01
v0.11.0-alpha0
frequenz-sdk
Release Notes
Summary
This is the first public open source release based on the internal SDK version v0.10.0. There are no breaking changes in this release, only changes to the project structure, metadata, and automation. Packages are also now uploaded to PyPI as frequenz-sdk
, so this project now can be installed normally via pip
:
python -m pip install frequenz-sdk
The GitHub issues were also improved, adding templates for reporting issues and requesting features. Users are also pointed to the Discussion forums when trying to open an issue if they have questions instead. Also many labels are assigned automatically on issue and pull request creation.
Full Changelog: https://github.com/leandro-lucarella-frequenz/frequenz-sdk-python/commits/v0.11.0-alpha0