disambiguate some variable names

This commit is contained in:
Jan Petykiewicz 2020-05-11 19:01:02 -07:00
parent f8e347c997
commit d33afc2bfd
2 changed files with 8 additions and 8 deletions

View File

@ -304,15 +304,15 @@ def read(stream: io.BufferedIOBase,
else:
args['layer'] = (element.layer, element.data_type)
shape = Polygon(**args)
poly = Polygon(**args)
if clean_vertices:
try:
shape.clean_vertices()
poly.clean_vertices()
except PatternError:
continue
pat.shapes.append(shape)
pat.shapes.append(poly)
if isinstance(element, gdsii.elements.Path):
if element.path_type in path_cap_map:
@ -338,15 +338,15 @@ def read(stream: io.BufferedIOBase,
else:
args['layer'] = (element.layer, element.data_type)
shape = Path(**args)
path = Path(**args)
if clean_vertices:
try:
shape.clean_vertices()
path.clean_vertices()
except PatternError as err:
continue
pat.shapes.append(shape)
pat.shapes.append(path)
elif isinstance(element, gdsii.elements.Text):
label = Label(offset=element.xy,

View File

@ -566,8 +566,8 @@ class Pattern:
for entry in self.shapes + self.subpatterns:
entry.offset *= c
entry.scale_by(c)
for entry in self.labels:
entry.offset *= c
for label in self.labels:
label.offset *= c
return self
def rotate_around(self, pivot: vector2, rotation: float) -> 'Pattern':