Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,23 @@ dev-flake8 = [
"pydoclint == 0.7.3",
"pydocstyle == 6.3.0",
]
dev-formatting = ["black == 25.1.0", "isort == 6.0.1"]
dev-formatting = ["black == 25.9.0", "isort == 6.1.0"]
dev-mkdocs = [
"black == 25.1.0",
"Markdown==3.8.2",
"black == 25.9.0",
"Markdown==3.9",
"mike == 2.1.3",
"mkdocs-gen-files == 0.5.0",
"mkdocs-literate-nav == 0.6.2",
"mkdocs-macros-plugin == 1.3.9",
"mkdocs-macros-plugin == 1.4.0",
"mkdocs-material == 9.6.21",
"mkdocstrings[python] == 0.30.1",
"mkdocstrings-python == 1.18.2",
"frequenz-repo-config[lib] == 0.13.5",
]
dev-mypy = [
"mypy == 1.17.1",
"types-Markdown == 3.8.0.20250809",
"types-protobuf == 6.30.2.20250822",
"mypy == 1.18.2",
"types-Markdown == 3.9.0.20250906",
"types-protobuf == 6.32.1.20250918",
"types-setuptools == 80.9.0.20250822",
# For checking the noxfile, docs/ script, and tests
"frequenz-sdk[dev-mkdocs,dev-noxfile,dev-pytest]",
Expand All @@ -83,11 +83,11 @@ dev-pylint = [
dev-pytest = [
"pytest == 8.4.2",
"frequenz-repo-config[extra-lint-examples] == 0.13.5",
"pytest-mock == 3.14.1",
"pytest-mock == 3.15.1",
"pytest-asyncio == 1.1.0",
"time-machine == 2.16.0",
"async-solipsism == 0.8",
"hypothesis == 6.138.14",
"hypothesis == 6.140.2",
]
dev = [
"frequenz-sdk[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
Expand Down
7 changes: 4 additions & 3 deletions src/frequenz/sdk/microgrid/_data_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
from ..actor._actor import Actor
from ..timeseries import ResamplerConfig
from ..timeseries._voltage_streamer import VoltageStreamer
from ..timeseries.grid import Grid
from ..timeseries.grid import get as get_grid
from ..timeseries.grid import initialize as initialize_grid
from ._data_sourcing import ComponentMetricRequest, DataSourcingActor
from ._power_wrapper import PowerWrapper

Expand All @@ -47,6 +44,7 @@
from ..timeseries.ev_charger_pool._ev_charger_pool_reference_store import (
EVChargerPoolReferenceStore,
)
from ..timeseries.grid import Grid
from ..timeseries.logical_meter import LogicalMeter
from ..timeseries.producer import Producer
from ..timeseries.pv_pool import PVPool
Expand Down Expand Up @@ -206,6 +204,9 @@ def producer(self) -> Producer:

def grid(self) -> Grid:
"""Return the grid measuring point."""
from ..timeseries.grid import get as get_grid
from ..timeseries.grid import initialize as initialize_grid

if self._grid is None:
initialize_grid(
channel_registry=self._channel_registry,
Expand Down
Loading