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
New Quantity types! These types can have units (power, current, voltage, etc.) and are type- and unit-safe in the sense that users can't accidentally sum a power with a voltage, or a power in kW with a power in W.
Upgrading
Sample objects no longer hold floats, but rather Quantity or one of its subclasses, like Power, Current, Energy, etc. based on the type of values being streamed.
MicrogridApiClient.set_power no longer returns a protobuf.Empty result, but a None. This won't affect you unless you are using the low level APIs of the SDK.
New Features
The logical meter has a new method that returns producer power, that is the sum of all energy producers.
Quantity types (Power, Current, Energy, Voltage) for providing type- and unit-safety when dealing with physical quantities.
Bug Fixes
Two bugs in the ring buffer which is used by the MovingWindow class were fixed:
len(buffer) was not considering potentially existing gaps (areas without elements) in the buffer.
A off-by-one error in the gap calculation logic was fixed that recorded a gap when there was none if an element with a future timestamp was added that would create a gap of exactly 1.
A formula engine lifetime issue, when creating higher order formula receivers without holding on to a reference to the engine, was fixed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Release Notes
Summary
New
Quantitytypes! These types can have units (power, current, voltage, etc.) and are type- and unit-safe in the sense that users can't accidentally sum a power with a voltage, or a power in kW with a power in W.Upgrading
Sampleobjects no longer holdfloats, but ratherQuantityor one of its subclasses, likePower,Current,Energy, etc. based on the type of values being streamed.BatteryPool.socnow streams values of typeSample[Quantity], andBatteryPool.capacitynow streams values of typeSample[Energy].MicrogridApiClient.set_powerno longer returns aprotobuf.Emptyresult, but aNone. This won't affect you unless you are using the low level APIs of the SDK.New Features
The logical meter has a new method that returns producer power, that is the sum of all energy producers.
Quantitytypes (Power,Current,Energy,Voltage) for providing type- and unit-safety when dealing with physical quantities.Bug Fixes
Two bugs in the ring buffer which is used by the
MovingWindowclass were fixed:len(buffer)was not considering potentially existing gaps (areas without elements) in the buffer.A formula engine lifetime issue, when creating higher order formula receivers without holding on to a reference to the engine, was fixed.
What's Changed
--diffas a default argument forisortby @shsms in Add--diffas a default argument forisort#438Quantitytypes by @shsms in Disable default constructor in specializedQuantitytypes #465Percentagequantity by @shsms in APercentagequantity #470ResamplingFunctionin documentation by @Marenz in Fix broken reference toResamplingFunctionin documentation #472JUNCTIONandLOADcomponent categories by @shsms in Remove unusedJUNCTIONandLOADcomponent categories #467New Contributors
Full Changelog: v0.21.1...v0.22.0
This discussion was created from the release v0.22.0.
Beta Was this translation helpful? Give feedback.
All reactions