Skip to content

Switch to MicrogridConfig from fz-gridpool #216

Merged
cwasicki merged 5 commits into
frequenz-floss:v0.x.xfrom
cwasicki:cfg
Dec 10, 2025
Merged

Switch to MicrogridConfig from fz-gridpool #216
cwasicki merged 5 commits into
frequenz-floss:v0.x.xfrom
cwasicki:cfg

Conversation

@cwasicki
Copy link
Copy Markdown
Contributor

@cwasicki cwasicki commented Dec 8, 2025

This replaces the MicrogridConfig from frequenz.data.microgrid with the one from the frequenz-gridpool package.

The class was previously migrated in frequenz-floss/frequenz-gridpool-python#18

@cwasicki cwasicki requested a review from a team as a code owner December 8, 2025 21:20
@cwasicki cwasicki requested review from Copilot and micaebe December 8, 2025 21:20
@github-actions github-actions Bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels Dec 8, 2025
To avoid conflicts with fz-gridpool dependency.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
This will replace the `MicrogridConfig` class from `frequenz.data`.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
And remove local version.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
@github-actions github-actions Bot added the part:docs Affects the documentation label Dec 8, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the MicrogridConfig class from the local frequenz.data.microgrid.config module to the external frequenz-gridpool package, following its prior migration in frequenz-gridpool-python#18.

Key changes:

  • Added frequenz-gridpool >= 0.1, < 0.2 dependency
  • Updated imports across all files to use from frequenz.gridpool import MicrogridConfig
  • Removed local config.py module and its associated tests

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pyproject.toml Added frequenz-gridpool dependency and bumped typing-extensions version
src/frequenz/data/microgrid/init.py Updated import to use frequenz.gridpool package
src/frequenz/data/microgrid/component_data.py Updated import to use frequenz.gridpool package
src/frequenz/data/microgrid/config.py Removed entire file as functionality moved to external package
src/frequenz/lib/notebooks/reporting/data_processing.py Updated import to use frequenz.gridpool package
src/frequenz/lib/notebooks/reporting/utils/helpers.py Updated import to use frequenz.gridpool package
tests/test_config.py Removed tests for the config module (now maintained in frequenz-gridpool)
tests/test_helpers.py Updated import to use frequenz.gridpool package

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cwasicki cwasicki added this pull request to the merge queue Dec 10, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 94c01a9 Dec 10, 2025
5 checks passed
@cwasicki cwasicki deleted the cfg branch December 10, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants