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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies = [
]

[project.optional-dependencies]
dev = ["pre-commit", "pytest", "pytest-cov", "pytest-mock", "ruff==0.14.14"]
dev = ["pre-commit", "pytest", "pytest-cov", "pytest-mock", "ruff==0.15.5"]
doc = ["sphinx", "pydata-sphinx-theme", "myst-parser", "autodoc_pydantic"]
mcp = ["mcp[cli]>=1.2.0", "pyyaml"]

Expand Down
6 changes: 3 additions & 3 deletions src/shift/mapper/edge_equipment_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ def _get_served_load(self, from_node: str, to_node: str) -> ApparentPower:
descendants = list(nx.descendants(dfs_graph, parent_node))
load_nodes = list(
self.graph.get_nodes(
filter_func=lambda x: x.name in descendants
and x.assets is not None
and DistributionLoad in x.assets
filter_func=lambda x: (
x.name in descendants and x.assets is not None and DistributionLoad in x.assets
)
)
)
served_load = ApparentPower(0, "kilova")
Expand Down
Loading