File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ dependencies = [
30
30
# changing the version
31
31
# (plugins.mkdocstrings.handlers.python.import)
32
32
" frequenz-client-microgrid >= 0.6.0, < 0.7.0" ,
33
- " frequenz-channels >= 1.4 .0, < 2.0.0" ,
33
+ " frequenz-channels >= 1.6 .0, < 2.0.0" ,
34
34
" frequenz-quantities[marshmallow] >= 1.0.0, < 2.0.0" ,
35
35
" networkx >= 2.8, < 4" ,
36
36
" numpy >= 1.26.4, < 2" ,
48
48
dev-flake8 = [
49
49
" flake8 == 7.1.1" ,
50
50
" flake8-docstrings == 1.7.0" ,
51
- " flake8-pyproject == 1.2.3" , # For reading the flake8 config from pyproject.toml
51
+ " flake8-pyproject == 1.2.3" , # For reading the flake8 config from pyproject.toml
52
52
" pydoclint == 0.5.14" ,
53
53
" pydocstyle == 6.3.0" ,
54
54
]
Original file line number Diff line number Diff line change @@ -227,7 +227,11 @@ def new_receiver( # pylint: disable=too-many-arguments
227
227
"""
228
228
_validate_load_kwargs (marshmallow_load_kwargs )
229
229
230
- receiver = self .config_channel .new_receiver (name = f"{ self } :{ key } " , limit = 1 ).map (
230
+ # We disable warning on overflow, because we are only interested in the latest
231
+ # configuration, it is completely fine to drop old configuration updates.
232
+ receiver = self .config_channel .new_receiver (
233
+ name = f"{ self } :{ key } " , limit = 1 , warn_on_overflow = False
234
+ ).map (
231
235
lambda config : _load_config_with_logging_and_errors (
232
236
config ,
233
237
config_class ,
Original file line number Diff line number Diff line change 22
22
from .._internal ._channels import ChannelRegistry
23
23
from ..actor ._actor import Actor
24
24
from ..timeseries import ResamplerConfig
25
- from ..timeseries ._grid_frequency import GridFrequency
26
25
from ..timeseries ._voltage_streamer import VoltageStreamer
27
26
from ..timeseries .grid import Grid
28
27
from ..timeseries .grid import get as get_grid
35
34
#
36
35
# pylint: disable=import-outside-toplevel
37
36
if typing .TYPE_CHECKING :
37
+ from ..timeseries ._grid_frequency import GridFrequency
38
38
from ..timeseries .battery_pool import BatteryPool
39
39
from ..timeseries .battery_pool ._battery_pool_reference_store import (
40
40
BatteryPoolReferenceStore ,
@@ -140,6 +140,8 @@ def __init__(
140
140
141
141
def frequency (self ) -> GridFrequency :
142
142
"""Return the grid frequency measuring point."""
143
+ from ..timeseries ._grid_frequency import GridFrequency
144
+
143
145
if self ._frequency_instance is None :
144
146
self ._frequency_instance = GridFrequency (
145
147
self ._data_sourcing_request_sender (),
You can’t perform that action at this time.
0 commit comments