Merge branch 'dev' into pex

This commit is contained in:
jcirimel
2020-08-17 17:49:41 -07:00
75 changed files with 1195 additions and 395 deletions
+4 -4
View File
@@ -162,7 +162,7 @@ class instance(geometry):
"""
def __init__(self, name, mod, offset=[0, 0], mirror="R0", rotate=0):
"""Initializes an instance to represent a module"""
geometry.__init__(self)
super().__init__()
debug.check(mirror not in ["R90", "R180", "R270"],
"Please use rotation and not mirroring during instantiation.")
@@ -414,7 +414,7 @@ class path(geometry):
def __init__(self, lpp, coordinates, path_width):
"""Initializes a path for the specified layer"""
geometry.__init__(self)
super().__init__()
self.name = "path"
self.layerNumber = lpp[0]
self.layerPurpose = lpp[1]
@@ -452,7 +452,7 @@ class label(geometry):
def __init__(self, text, lpp, offset, zoom=-1):
"""Initializes a text label for specified layer"""
geometry.__init__(self)
super().__init__()
self.name = "label"
self.text = text
self.layerNumber = lpp[0]
@@ -496,7 +496,7 @@ class rectangle(geometry):
def __init__(self, lpp, offset, width, height):
"""Initializes a rectangular shape for specified layer"""
geometry.__init__(self)
super().__init__()
self.name = "rect"
self.layerNumber = lpp[0]
self.layerPurpose = lpp[1]