Repository navigation
v0.21.1 #427
v0.21.1
#427
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Release Notes
Summary
This release main introduces the new
PeriodicFeatureExtractor, the control interface to theBatteryPool, and a new naming scheme for retrievingLogicalMeterandBatteryPoolmetrics. 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).
BatteryPoolmetric streaming interfaces have changed forsoc,capacityandpower_bounds:Formulas now follow the new naming scheme.
BatteryPool.{power, production_power, consumption_power}EVChargerPool.{power, production_power, consumption_power}LogicalMeter:consumer_powergrid_powergrid_production_powergrid_consumption_powerchp_powerchp_production_powerchp_consumption_powerA power request can now be forced by setting the
include_brokenattribute. 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_brokenattribute to be explicitly set in the request.Now
floatis used everywhere for representing power (before power metrics werefloatbut setting power was done usingint).frequenz.sdk.actor.power_distributing: thepowerattribute of theRequestclass has been updated fromintto afloat.frequenz.sdk.microgrid: theset_power()method of both theMicrogridApiClientandMicrogridGrpcClientclasses now expect afloatvalue for thepower_wparameter instead ofint.The
LogicalMeterno longer takes acomponent_graphparameter.Now
frequenz.sdk.timeseries.Sampleuses a more sensible comparison. Before this releaseSamples 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 andSamples are compared using bothtimestampandvalueas most people probably expects.The dependency to
sympywas 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
MovingWindowhas new public methods that return the oldest and newest timestamp of all stored samples.The
PeriodicFeatureExtractorhas 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
BatteryPoolcan now be used to control the batteries in it via the new methodscharge(),discharge(), andset_power().Bug Fixes
What's Changed
Full Changelog: v0.21.0...v0.21.1
This discussion was created from the release v0.21.1.
All reactions