Skip to content

Commit

Permalink
Fix when changing the name in four-ports bus nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
aloytag committed Jun 23, 2024
1 parent 6286ebf commit d83c318
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "electricalsim"
version = "0.0.8.7.dev5"
version = "0.0.8.7.dev6"
author = "Dr. Ing. Ariel S. Loyarte"
authors = [
{ name="Dr. Ing. Ariel S. Loyarte", email="aloyarte@frsf.utn.edu.ar" },
Expand All @@ -14,7 +14,7 @@ readme = "README_PyPI.md"
requires-python = ">=3.8,<3.12"
dependencies = [
"PySide6>=6.6.1",
"pandapower>=2.13.1",
"pandapower>=2.14.7",
"numba>=0.56.4",
"pyqtdarktheme>=2.1.0",
"qtawesome>=1.2.2",
Expand Down
Binary file modified src/electricalsim/lib/__pycache__/electricalGraph.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion src/electricalsim/lib/electricalGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,6 @@ def connection_changed(self, disconnected, connected):
dialog.setParent(self.main_window)
dialog.move(main_win_rect.center() - dialog.rect().center()) # centering in the main window
self._on_connection_changed(disconnected=[pipe], connected=[])
# dialog.exec()

def dialog_closed(result, node_from=node_from, node_to=node_to,
port_from=port_from, port_to=port_to):
Expand Down Expand Up @@ -4009,6 +4008,7 @@ def _on_node_name_changed2(self, node_id, name):
if type_=='BusNode.BusNode':
bus_index = node.get_property('bus_index')
self.net.bus.loc[bus_index, 'name'] = name
four_ports_on_buses(node)
elif type_ in ('LineNode.LineNode', 'StdLineNode.StdLineNode'):
line_index = node.get_property('line_index')
if line_index is not None:
Expand Down

0 comments on commit d83c318

Please sign in to comment.