Pcbnew python plugins: fix some pad arrays

Fixes some pad array init functions that were not calling the
class hierarchy's init functions correctly.
This commit is contained in:
John Beard
2018-06-25 09:34:32 -04:00
committed by Wayne Stambaugh
parent 930f3dd74f
commit 847f4f50b1
2 changed files with 5 additions and 4 deletions
@@ -42,10 +42,8 @@ class PadStaggeredZGridArray(PA.PadArray):
@param aCentre Center position
"""
PA.PadArray.__init__(self)
# this pad is more of a "context", we will use it as a source of
# pad data, but not actually add it
self.pad = aPad
super(PadStaggeredZGridArray, self).__init__(aPad)
self.padCount = int(aPadCount)
self.lineCount = int(aLineCount)
self.linePitch = aLinePitch
+3
View File
@@ -23,6 +23,9 @@ import PadArray as PA
class RowedGridArray(PA.PadGridArray):
def __init__(self, *args, **kwargs):
super(RowedGridArray, self).__init__(*args, **kwargs)
def NamingFunction(self, x, y):
pad_cnt = self.nx*self.ny