Mirroring fix for gdsii import

This commit is contained in:
Jan Petykiewicz 2019-12-11 21:16:31 -08:00
parent 97b7eda21a
commit fcc4770534

View File

@ -379,7 +379,7 @@ def _sref_to_subpat(element: gdsii.elements.SRef) -> SubPattern:
raise PatternError('Absolute rotation is not implemented yet!') raise PatternError('Absolute rotation is not implemented yet!')
# Bit 0 means mirror x-axis # Bit 0 means mirror x-axis
if get_bit(element.strans, 15 - 0): if get_bit(element.strans, 15 - 0):
subpat.mirror(axis=0) subpat.mirrored[0] = 1
return subpat return subpat