Skip to content

Commit 8d6edef

Browse files
committed
Backquote keywords in documentation
Also fix a documentation grammar mistake involving the removal of a comma. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 520f1c1 commit 8d6edef

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
- `microgrid.battery_pool()` method now accepts a priority value.
1010

11-
- BatteryPool's control methods
11+
- `BatteryPool`'s control methods
1212

1313
* Original methods `{set_power/charge/discharge}` are now replaced by `propose_{power/charge/discharge}`
1414
* The `propose_*` methods send power proposals to the `PowerManagingActor`, where it can be overridden by proposals from other actors.
1515
* They no longer have the `adjust_power` flag, because the `PowerManagingActor` will always adjust power to fit within the available bounds.
1616

17-
- BatteryPool's reporting methods
17+
- `BatteryPool`'s reporting methods
1818

1919
* `power_bounds` is replaced by `power_status`
2020
* The `power_status` method streams objects containing:
@@ -49,7 +49,7 @@
4949
batteries.
5050
This means that one or more inverters can be connected to one or more batteries.
5151

52-
- A PowerManagingActor implementation
52+
- A `PowerManagingActor` implementation
5353

5454
## Bug Fixes
5555

src/frequenz/sdk/microgrid/_data_pipeline.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,21 +192,20 @@ def battery_pool(
192192
name: str | None = None,
193193
priority: int = -sys.maxsize - 1,
194194
) -> BatteryPool:
195-
"""Return a new BatteryPool instance for the given ids.
195+
"""Return a new `BatteryPool` instance for the given ids.
196196
197-
If a BatteryPoolReferenceStore instance for the given battery ids doesn't exist,
198-
a new one is created and used for creating the BatteryPool.
197+
If a `BatteryPoolReferenceStore` instance for the given battery ids doesn't exist,
198+
a new one is created and used for creating the `BatteryPool`.
199199
200200
Args:
201201
battery_ids: Optional set of IDs of batteries to be managed by the
202-
BatteryPool.
202+
`BatteryPool`.
203203
name: An optional name used to identify this instance of the pool or a
204204
corresponding actor in the logs.
205205
priority: The priority of the actor making the call.
206206
207207
Returns:
208-
A BatteryPool instance.
209-
208+
A `BatteryPool` instance.
210209
"""
211210
from ..timeseries.battery_pool import BatteryPool
212211
from ..timeseries.battery_pool._battery_pool_reference_store import (
@@ -433,7 +432,7 @@ def battery_pool(
433432
name: str | None = None,
434433
priority: int = -sys.maxsize - 1,
435434
) -> BatteryPool:
436-
"""Return a new BatteryPool instance for the given parameters.
435+
"""Return a new `BatteryPool` instance for the given parameters.
437436
438437
The priority value is used to resolve conflicts when multiple actors are trying to
439438
propose different power values for the same set of batteries.
@@ -443,14 +442,14 @@ def battery_pool(
443442
priority is the lowest possible value.
444443
445444
Args:
446-
battery_ids: Optional set of IDs of batteries to be managed by the BatteryPool.
445+
battery_ids: Optional set of IDs of batteries to be managed by the `BatteryPool`.
447446
If not specified, all batteries available in the component graph are used.
448447
name: An optional name used to identify this instance of the pool or a
449448
corresponding actor in the logs.
450449
priority: The priority of the actor making the call.
451450
452451
Returns:
453-
A BatteryPool instance.
452+
A `BatteryPool` instance.
454453
"""
455454
return _get().battery_pool(battery_ids, name, priority)
456455

src/frequenz/sdk/timeseries/battery_pool/_battery_pool_reference_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BatteryPoolReferenceStore: # pylint: disable=too-many-instance-attributes
2828
- the formula engine pool and metric calculators.
2929
- the tasks for updating the battery status for the metric calculators.
3030
31-
These are independent of the priority of the actors, and can be shared between
31+
These are independent of the priority of the actors and can be shared between
3232
multiple users of the same set of batteries.
3333
3434
They are exposed through the BatteryPool class.

0 commit comments

Comments
 (0)