Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add assets config to microgrid config #17

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

cwasicki
Copy link
Contributor

Config files specifying assets pv, wind and battery are now supported and asset metadata can be accessed via the assets property. For each asset type multiple entries can be specified in dict form.

@cwasicki cwasicki requested a review from a team as a code owner January 21, 2025 18:45
@cwasicki cwasicki requested a review from cyiallou January 21, 2025 18:45
@github-actions github-actions bot added the part:docs Affects the documentation label Jan 21, 2025
Copy link
Contributor

@cyiallou cyiallou left a comment

Choose a reason for hiding this comment

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

Nice work on adding support for asset configurations and integrating _assets_cfg into MicrogridConfig is a solid addition. I can see how this will make the configuration more modular and extendable in the future. I only have a minor comment/suggestion.

Comment on lines 164 to 171
self._assets_cfg = AssetsConfig(
pv=config_dict.get("pv") or {},
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a specific reason for only including pv for now?

I suggest updating the __init__ method to initialize _assets_cfg with configurations for all three asset types. This would make the behaviour consistent with the AssetsConfig design.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will update

Config files specifying assets pv, wind and battery are now supported
and asset metadata can be accessed via the `assets` property. For each
asset type multiple entries can be specified in dict form.

Signed-off-by: cwasicki <[email protected]>
@cwasicki
Copy link
Contributor Author

Updated.

@cyiallou cyiallou added this pull request to the merge queue Jan 22, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 8c65261 Jan 22, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:docs Affects the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants