Skip to content

Commit 089a78e

Browse files
detection in the whole name and not just at the end
1 parent 6561ddf commit 089a78e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/python_netlist/netlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def check_orphans(self, min_pins=2):
7676
"""return a list of nets that have less than min_pins connections"""
7777
netlist = self.netlist
7878
return {n: netlist[n] for n in netlist if
79-
len(netlist[n]) < min_pins and not (n.startswith('NC_') or n.endswith('_NC') or ('.NC_' in n))}
79+
len(netlist[n]) < min_pins and not (n.startswith('NC_') or ('_NC' in n) or ('.NC_' in n))}
8080

8181

8282
if __name__ == '__main__':

0 commit comments

Comments
 (0)