Skip to content

Commit 4d37299

Browse files
llucaxCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]> Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 77dfd1d commit 4d37299

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/frequenz/client/common/metrics/_metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Metric(enum.Enum):
2323
components reset it on UTC 00:00:00.
2424
2525
- This energy metric does not specify the start time of the accumulation
26-
period,and therefore can be inconsistent.
26+
period, and therefore can be inconsistent.
2727
"""
2828

2929
UNSPECIFIED = metrics_pb2.METRIC_UNSPECIFIED

src/frequenz/client/common/metrics/_sample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AggregatedMetricValue:
3939
4040
This message represents derived metrics and contains fields for statistical
4141
summaries—minimum, maximum, and average values. Individual measurements are
42-
are optional, accommodating scenarios where only subsets of this information
42+
optional, accommodating scenarios where only subsets of this information
4343
are available.
4444
"""
4545

@@ -202,9 +202,9 @@ def as_single_value(
202202
) -> float | None:
203203
"""Return the value of this sample as a single value.
204204
205-
if [`value`][frequenz.client.microgrid.metrics.MetricSample.value] is a `float`,
205+
if [`value`][frequenz.client.common.metrics.MetricSample.value] is a `float`,
206206
it is returned as is. If `value` is an
207-
[`AggregatedMetricValue`][frequenz.client.microgrid.metrics.AggregatedMetricValue],
207+
[`AggregatedMetricValue`][frequenz.client.common.metrics.AggregatedMetricValue],
208208
the value is aggregated using the provided `aggregation_method`.
209209
210210
Args:

0 commit comments

Comments
 (0)