From f7ce17c29395aa24e6b85adb21db8db09c1e9f5d Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sat, 13 Apr 2019 17:34:01 -0700 Subject: [PATCH] Fix mirroring --- masque/file/gdsii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/file/gdsii.py b/masque/file/gdsii.py index 427e516..8be0539 100644 --- a/masque/file/gdsii.py +++ b/masque/file/gdsii.py @@ -407,7 +407,7 @@ def _subpatterns_to_refs(subpatterns: List[SubPattern or GridRepetition] ref.strans = 0 ref.angle = subpat.rotation * 180 / numpy.pi mirror_x, mirror_y = subpat.mirrored - if mirror_y and mirror_y: + if mirror_x and mirror_y: ref.angle += 180 elif mirror_x: ref.strans = set_bit(ref.strans, 15 - 0, True)