From d17cf5b6be33b1b89eceae2b38f26aec85e2e7c4 Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 2 Sep 2018 22:46:11 -0700 Subject: [PATCH] label should have a list of 1 point --- masque/file/gdsii.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/masque/file/gdsii.py b/masque/file/gdsii.py index 61f20ab..7ed3352 100644 --- a/masque/file/gdsii.py +++ b/masque/file/gdsii.py @@ -86,10 +86,10 @@ def write(patterns: Pattern or List[Pattern], xy=xy_closed)) for label in pat.labels: layer, text_type = _mlayer2gds(label.layer) - xy_closed = numpy.round([label.offset, label.offset]).astype(int) + xy= numpy.round([label.offset]).astype(int) structure.append(gdsii.elements.Text(layer=layer, text_type=text_type, - xy=xy_closed, + xy=xy, string=label.string.encode('ASCII'))) # Add an SREF for each subpattern entry @@ -211,10 +211,10 @@ def write_dose2dtype(patterns: Pattern or List[Pattern], xy=xy_closed)) for label in pat.labels: layer, text_type = _mlayer2gds(label.layer) - xy_closed = numpy.round([label.offset, label.offset]).astype(int) + xy = numpy.round([label.offset]).astype(int) structure.append(gdsii.elements.Text(layer=layer, text_type=text_type, - xy=xy_closed, + xy=xy, string=label.string.encode('ASCII'))) # Add an SREF for each subpattern entry