fix incomplete commit

This commit is contained in:
jan 2017-08-29 15:57:37 -07:00
parent 8256a540dc
commit 85e2c662cc

View File

@ -54,11 +54,8 @@ def write(pattern: Pattern,
# Get a dict of id(pattern) -> pattern
patterns_by_id = {**(pattern.referenced_patterns_by_id()), id(pattern): pattern}
# Now create a structure for each row in sd_table (ie, each pattern + dose combination)
# and add in any Boundary and SREF elements
for pat_id, pat_dose in sd_table:
pat = patterns_by_id[pat_id]
# Now create a structure for each pattern, and add in any Boundary and SREF elements
for pat in patterns_by_id.values():
sanitized_name = re.compile('[^A-Za-z0-9_\?\$]').sub('_', pattern.name)
structure = gdsii.structure.Structure(name=sanitized_name.encode('ASCII'))
lib.append(structure)