-
Notifications
You must be signed in to change notification settings - Fork 22
Set zero power for PV inverters not neccessary to reach target power #946
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,7 +136,8 @@ async def distribute_power(self, request: Request) -> None: | |
| if remaining_power > Power.zero() or is_close_to_zero( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is still correct, because when we set 0 power to the remaining inverters, we're no longer allocating, but the comment could provide further details: #960 |
||
| remaining_power.as_watts() | ||
| ): | ||
| break | ||
| allocations[inv_id] = Power.zero() | ||
| continue | ||
| distribution = remaining_power / float(num_components - idx) | ||
| inv_data = self._component_data_caches[inv_id] | ||
| if not inv_data.has_value(): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be
... receives a positive or zero power request ...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would never receive a positive power, because that's filtered in the pv pool:
frequenz-sdk-python/src/frequenz/sdk/timeseries/pv_pool/_pv_pool.py
Lines 109 to 110 in 4b88ab2