Skip to content

v1.0.0-rc2200

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Dec 12:22
· 66 commits to v1.x.x since this release
Immutable release. Only release title and notes can be modified.
v1.0.0-rc2200
1fd91a2

Frequenz Python SDK Release Notes

Important

This release as not PyPI release because there was a failed attempt to release the version 1.0.0-rc2200 in the past that we ended up deleting.

Fortunately PyPI is getting more strict about this, and doesn't allow re-publishing a deleted release using different artifacts, so we can't re-use the failed rc2200 for this release.

The release v1.0.0-rc2201 ships the exact same code as this release (it points to the same commit), and should be used instead.

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.

What's Changed

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