v0.20.0 #358
v0.20.0
#358
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Release Notes
Summary
Upgrading
Battery power is no longer available through the
LogicalMeter
, but through theBatteryPool
(Addpower
formula toBatteryPool
#338)Formulas composition has changed (Make FormulaEngine instances composable, instead of FormulaReceivers #327)
FormulaEngine
instances, which can be composed further, or can provide a receiver to fetch values.Update
BatteryStatus
to mark battery with unknown capacity as not working (Check battery capacity in BatteryStatus #263)The channels dependency was updated to v0.14.0 (Update SDK dependency of channels to the new release 0.14 #292)
Some properties for
PowerDistributingActor
results were renamed to be more consistent betweenSuccess
andPartialFailure
:Success.used_batteries
property was renamed tosucceeded_batteries
.PartialFailure.success_batteries
property was renamed tosucceeded_batteries
.succeed_power
property was renamed tosucceeded_power
for bothSuccess
andPartialFailure
.MovingWindow
The class is now publicly available in the
frequenz.sdk.timeseries
package.Accept the
size
parameter astimedelta
instead ofint
(Add resampler to MovingWindow #269).This change allows users to define the time span of the moving window more intuitively, representing the duration over which samples will be stored.
The input data will be resampled if a
resampler_config
is passed (Add resampler to MovingWindow #269).This allows controlling the granularity of the samples to be stored in the underlying buffer.
Note that the parameter
sampling_period
has been renamed toinput_sampling_period
to better distinguish it from the sampling period parameter in theresampler_config
.Rename the constructor argument
window_alignment
toalign_to
and change the default toUNIX_EPOCH
. This is to make it more consistent with theResamplerConfig
.Resampler
The
ResamplerConfig
class is now publicly available in thefrequenz.sdk.timeseries
package.The
ResamplerConfig
now takes the resampling period as atimedelta
. The configuration was renamed fromresampling_period_s
toresampling_period
accordingly.The
SourceProperties
of the resampler now uses atimedelta
for the input sampling period. The attribute was renamed fromsampling_period_s
tosampling_period
accordingly.The periods are now aligned to the
UNIX_EPOCH
by default.To use the old behaviour (aligning to the time the resampler was created), pass
align_to=None
to theResamplerConfig
.New Features
The core data-pipeline actors are now created automatically (Add a
DataPipeline
implementation #270).This eliminates a lot of boiler plate code and makes it much simpler to deploy apps.
For example:
The
Result
class (and subclasses) for thePowerDistributingActor
are nowdataclass
es, so logging them will produce a more detailed output.The
Resampler
can now can align the resampling period to an arbitrarydatetime
.This can be configured via the new
align_to
option in theResamplerConfig
. By default the resampling period is aligned to theUNIX_EPOCH
.Bug Fixes
Change
PowerDistributor
to use all batteries when none are working (Use all batteries when none are working in PowerDistributor #258)Update the ordered ring buffer used by the
MovingWindow
to fix thelen()
function so that it returns a value equal to or greater than zero, as expected (Fix len() of the OrderedRingBuffer #274)What's Changed
DataPipeline
implementation by @shsms in Add aDataPipeline
implementation #270Result
s by @leandro-lucarella-frequenz in Refactor power distributor'sResult
s #305component_data
method to EVChargerPool by @shsms in Addcomponent_data
method to EVChargerPool #266EVChargerPool.set_bounds
method for setting current bounds by @shsms in Add aEVChargerPool.set_bounds
method for setting current bounds #297sdk.microgrid
by @sahas-subramanian-frequenz in Expose BatteryPool and PowerDistributingHandle fromsdk.microgrid
#323BatteryPool
tests, examples to usemicrogrid.battery_pool()
by @sahas-subramanian-frequenz in UpdateBatteryPool
tests, examples to usemicrogrid.battery_pool()
#336power
formula toBatteryPool
by @sahas-subramanian-frequenz in Addpower
formula toBatteryPool
#338_logger
by @sahas-subramanian-frequenz in Rename custom loggers to_logger
#347align_to
and make them default toUNIX_EPOCH
by @leandro-lucarella-frequenz in Rename alignment arguments toalign_to
and make them default toUNIX_EPOCH
#349MovingWindow
public and remove public mentions to theRingBuffer
by @leandro-lucarella-frequenz in Make theMovingWindow
public and remove public mentions to theRingBuffer
#355New Contributors
Full Changelog: v0.19.0...v0.20.0
This discussion was created from the release v0.20.0.
Beta Was this translation helpful? Give feedback.
All reactions