Skip to content

v1.0.0-rc2201

Latest

Choose a tag to compare

@github-actions github-actions released this 08 Dec 09:36
· 66 commits to v1.x.x since this release
Immutable release. Only release title and notes can be modified.
v1.0.0-rc2201
1fd91a2

Frequenz Python SDK Release Notes

Note

This version is just a re-publishing of version v1.0.0-rc2200, because we had some issue with publishing that versin to PyPI.

Summary

This is a major upgrade, as the underlying version of the microgrid API was changed to use v0.18.x instead.

Upgrading

  • The SDK now depends on the frequenz-client-microgrid v0.18.x series.

    • Check the release notes for the client v0.18.
    • There were a lot of changes, so it might be also worth having a quick look at the microgrid API v0.17 and v0.18 releases.
    • Checking out the API common releases v0.6, v0.7, v0.8 might also be worthwhile, at least if you find any errors about renamed or missing types.
    • Although many of the changes in lower layer are hidden by the SDK, there are some changes that can't be hidden away. For example the Metric enum had some renames, and Component.component_id was renamed to Component.id. Also, there is a new component class hierarchy.
  • ComponentGraph methods arguments were renamed to better reflect what they expect.

    • The components() method now uses matching_ids and matching_types instead of component_ids and component_categories respectively. matching_types takes types inheriting from Component instead of categories, for example Battery or BatteryInverter.
    • The connections() methods now take matching_sources and matching_destinations instead of start and end respectively. This is to match the new names in ComponentConnection.
    • All arguments for both methods can now receiver arbitrary iterables instead of sets, and can also accept a single value.

New Features

Bug Fixes

What's Changed

Full Changelog: v1.0.0-rc2104...v1.0.0-rc2201