Skip to content

Commit

Permalink
Fix open_circuit #150
Browse files Browse the repository at this point in the history
  • Loading branch information
mph- committed Dec 2, 2024
1 parent f5217ad commit 72010ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lcapy/mnacpts.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,10 +857,10 @@ def open_circuit(self):
open-circuit component."""

dummy_node = self._dummy_node()
net = self._netmake((dummy_node, ) + self.relnodes[1:])
net = self._netmake((dummy_node, ) + tuple(self.relnodes[1:]))
self.cct.remove(self.name)
self.cct.add(net)
self.cct.add('O? %s %s' % (self.relnodes[0], dummy_node))
self.cct.add('O? %s %s' % (self.relnodes[0].name, dummy_node.name))
return self.cct.last_added()

def short_circuit(self):
Expand Down

0 comments on commit 72010ab

Please sign in to comment.