Add GridRepetition: a SubPattern-like object which implements regular spatial arrays.
Also rework masque.file.gdsii to consolidate write() and write_dose2dtype()
This commit is contained in:
parent
539198435c
commit
c50bd8e148
4 changed files with 494 additions and 134 deletions
|
|
@ -12,6 +12,7 @@ import numpy
|
|||
# .visualize imports matplotlib and matplotlib.collections
|
||||
|
||||
from .subpattern import SubPattern
|
||||
from .repetition import GridRepetition
|
||||
from .shapes import Shape, Polygon
|
||||
from .label import Label
|
||||
from .utils import rotation_matrix_2d, vector2
|
||||
|
|
@ -34,7 +35,7 @@ class Pattern:
|
|||
"""
|
||||
shapes = None # type: List[Shape]
|
||||
labels = None # type: List[Labels]
|
||||
subpatterns = None # type: List[SubPattern]
|
||||
subpatterns = None # type: List[SubPattern or GridRepetition]
|
||||
name = None # type: str
|
||||
|
||||
def __init__(self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue