From 85e2c662cc78206c962079d366fbc5ba679ec145 Mon Sep 17 00:00:00 2001 From: jan Date: Tue, 29 Aug 2017 15:57:37 -0700 Subject: [PATCH] fix incomplete commit --- masque/file/gdsii.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/masque/file/gdsii.py b/masque/file/gdsii.py index 394cec7..3d4ab48 100644 --- a/masque/file/gdsii.py +++ b/masque/file/gdsii.py @@ -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)