Skip to content

Commit 73f2e41

Browse files
Update consumer references in documentation
Signed-off-by: Daniel Zullo <[email protected]>
1 parent 39ba005 commit 73f2e41

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/user-guide/glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ the component graph are:
167167

168168
- figure out how to calculate high level metrics like
169169
[`grid_power`][frequenz.sdk.timeseries.grid.Grid.power],
170-
[`consumer_power`][frequenz.sdk.timeseries.logical_meter.LogicalMeter.consumer_power],
170+
[`consumer_power`][frequenz.sdk.timeseries.consumer.Consumer.power],
171171
etc. for a microgrid, using the available components.
172172
- identify the available {{glossary("battery", "batteries")}} or
173173
{{glossary("EV charger", "EV chargers")}} at a site that can be controlled.

src/frequenz/sdk/timeseries/formula_engine/_formula_engine.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class FormulaEngine(
232232
233233
They are used in the SDK to calculate and stream metrics like
234234
[`grid_power`][frequenz.sdk.timeseries.grid.Grid.power],
235-
[`consumer_power`][frequenz.sdk.timeseries.logical_meter.LogicalMeter.consumer_power],
235+
[`consumer_power`][frequenz.sdk.timeseries.consumer.Consumer.power],
236236
etc., which are building blocks of the
237237
[Frequenz SDK Microgrid Model][frequenz.sdk.microgrid--frequenz-sdk-microgrid-model].
238238
@@ -333,9 +333,7 @@ def from_receiver(
333333
334334
async def run() -> None:
335335
producer_power_engine = microgrid.logical_meter().producer_power
336-
consumer_power_recv = (
337-
microgrid.logical_meter().consumer_power.new_receiver()
338-
)
336+
consumer_power_recv = microgrid.consumer().power.new_receiver()
339337
340338
excess_power_recv = (
341339
(

0 commit comments

Comments
 (0)