Skip to content

Commit 18c5721

Browse files
committed
Add missing arguments to docstrings
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent f656edc commit 18c5721

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

benchmarks/timeseries/periodic_feature_extractor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def _num_windows(
112112
Args:
113113
window: The buffer that is used for the average calculation.
114114
window_size: The size of the window in samples.
115+
period: The distance between two succeeding intervals in samples.
115116
116117
Returns:
117118
The number of windows that are fully contained in the MovingWindow.

tests/actor/test_actor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def __init__(
125125
name: Name of the actor.
126126
recv1: A channel receiver for test boolean data.
127127
recv2: A channel receiver for test boolean data.
128+
output: A channel sender for output test boolean data.
128129
"""
129130
super().__init__(name=name)
130131
self._recv1 = recv1
@@ -203,6 +204,7 @@ async def test_restart_on_unhandled_exception(
203204
204205
Args:
205206
restart_limit: The restart limit to use.
207+
caplog: The log capture fixture.
206208
"""
207209
caplog.set_level("DEBUG", logger="frequenz.sdk.actor._actor")
208210
caplog.set_level("DEBUG", logger="frequenz.sdk.actor._run_utils")

tests/actor/test_battery_status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def battery_data( # pylint: disable=too-many-arguments
5959
component_state: Component state.
6060
Defaults to BatteryState.COMPONENT_STATE_CHARGING.
6161
errors: List of the components error. By default empty list will be created.
62+
capacity: Battery capacity.
6263
6364
Returns:
6465
BatteryData with given arguments.

tests/timeseries/mock_microgrid.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def add_chps(self, count: int, no_meters: bool = False) -> None:
304304
305305
Args:
306306
count: number of CHPs to add.
307+
no_meters: if True, do not add a meter for each CHP.
307308
"""
308309
for _ in range(count):
309310
meter_id = self._id_increment * 10 + self.meter_id_suffix

tests/utils/graph_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def _to_graph(
185185
"""Convert a list of components to a graph.
186186
187187
Args:
188+
parent: the parent component.
188189
components: the components to convert to a graph.
189190
190191
Returns:

tests/utils/mock_microgrid_client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ def _create_mock_api(
233233
MicrogridApiClient.battery_data.
234234
inv_channel: inverter channels to be returned from
235235
MicrogridApiClient.inverter_data.
236+
meter_channels: meter channels to be returned from
237+
MicrogridApiClient.meter_data.
238+
ev_charger_channels: ev_charger channels to be returned from
239+
MicrogridApiClient.ev_charger_data.
236240
237241
Returns:
238242
Magic mock instance of MicrogridApiClient.
@@ -274,6 +278,7 @@ def _get_battery_receiver(
274278
Args:
275279
component_id: component_id
276280
channels: Broadcast channels
281+
maxsize: Max size of the channel
277282
278283
Returns:
279284
Receiver from the given channels.
@@ -293,6 +298,7 @@ def _get_meter_receiver(
293298
Args:
294299
component_id: component_id
295300
channels: Broadcast channels
301+
maxsize: Max size of the channel
296302
297303
Returns:
298304
Receiver from the given channels.
@@ -312,6 +318,7 @@ def _get_ev_charger_receiver(
312318
Args:
313319
component_id: component_id
314320
channels: Broadcast channels
321+
maxsize: Max size of the channel
315322
316323
Returns:
317324
Receiver from the given channels.
@@ -331,6 +338,7 @@ def _get_inverter_receiver(
331338
Args:
332339
component_id: component_id
333340
channels: Broadcast channels
341+
maxsize: Max size of the channel
334342
335343
Returns:
336344
Receiver from the given channels.

0 commit comments

Comments
 (0)