Check reference designator type when comparing comp
example: prevents a 10K NTC resistor from getting grouped with a 10K SMD resistor
This commit is contained in:
parent
dea05336fc
commit
9ca61b50b6
|
@ -21,6 +21,7 @@ import sys
|
||||||
import xml.sax as sax
|
import xml.sax as sax
|
||||||
import re
|
import re
|
||||||
import pdb
|
import pdb
|
||||||
|
import string
|
||||||
|
|
||||||
#-----<Configure>----------------------------------------------------------------
|
#-----<Configure>----------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -335,7 +336,8 @@ class comp():
|
||||||
result = False
|
result = False
|
||||||
if self.getValue() == other.getValue():
|
if self.getValue() == other.getValue():
|
||||||
if self.getFootprint() == other.getFootprint():
|
if self.getFootprint() == other.getFootprint():
|
||||||
result = True
|
if self.getRef().rstrip(string.digits) == other.getRef().rstrip(string.digits):
|
||||||
|
result = True
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def setLibPart(self, part):
|
def setLibPart(self, part):
|
||||||
|
|
Loading…
Reference in New Issue