Skip to content

Commit

Permalink
Fix node count for open circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
mph- committed Jan 14, 2024
1 parent df6a675 commit 97f4d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lcapy/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def impedance(self):

def append(self, cpt):

if cpt.type not in ('A', ):
if cpt.type not in ('A', 'O'):
self._count += 1

self._connected.append(cpt)
Expand All @@ -106,7 +106,7 @@ def remove(self, cpt):
if c.name == cpt.name:
self._connected.remove(c)
break
if cpt.type not in ('A', ):
if cpt.type not in ('A', 'O'):
self._count -= 1

if self.count == 0:
Expand Down

0 comments on commit 97f4d17

Please sign in to comment.