fix incomplete commit
This commit is contained in:
parent
8256a540dc
commit
85e2c662cc
@ -54,11 +54,8 @@ def write(pattern: Pattern,
|
|||||||
# Get a dict of id(pattern) -> pattern
|
# Get a dict of id(pattern) -> pattern
|
||||||
patterns_by_id = {**(pattern.referenced_patterns_by_id()), 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)
|
# Now create a structure for each pattern, and add in any Boundary and SREF elements
|
||||||
# and add in any Boundary and SREF elements
|
for pat in patterns_by_id.values():
|
||||||
for pat_id, pat_dose in sd_table:
|
|
||||||
pat = patterns_by_id[pat_id]
|
|
||||||
|
|
||||||
sanitized_name = re.compile('[^A-Za-z0-9_\?\$]').sub('_', pattern.name)
|
sanitized_name = re.compile('[^A-Za-z0-9_\?\$]').sub('_', pattern.name)
|
||||||
structure = gdsii.structure.Structure(name=sanitized_name.encode('ASCII'))
|
structure = gdsii.structure.Structure(name=sanitized_name.encode('ASCII'))
|
||||||
lib.append(structure)
|
lib.append(structure)
|
||||||
|
Loading…
Reference in New Issue
Block a user