Skip to content

Commit

Permalink
Merge pull request #981 from gdsfactory/680
Browse files Browse the repository at this point in the history
add thickness_tolerance to LayerLevel and box_thickness to LayerStack
  • Loading branch information
joamatab committed Dec 11, 2022
2 parents 63eda3f + a5eb07c commit 33b468a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
@@ -1,7 +1,7 @@
s:
- 1.3220365006
- 0.9111160204
- 0.3730304792
- 1.3219649652
- 0.9110420866
- 0.3730220253
w:
- 1600.0
- 1548.3870967741937
Expand Down
Expand Up @@ -11,7 +11,7 @@ s13:
- 0.381
- 0.42
s14:
- 0.507
- 0.506
- 0.505
- 0.465
s21:
Expand Down Expand Up @@ -47,7 +47,7 @@ s34:
- 0.117
- 0.114
s41:
- 0.507
- 0.506
- 0.505
- 0.465
s42:
Expand Down
6 changes: 6 additions & 0 deletions gdsfactory/tech.py
Expand Up @@ -104,6 +104,7 @@ class LayerLevel(BaseModel):
Parameters:
layer: (GDSII Layer number, GDSII datatype).
thickness: layer thickness in um.
thickness_tolerance: layer thickness tolerance in um.
zmin: height position where material starts in um.
material: material name.
sidewall_angle: in degrees with respect to normal.
Expand All @@ -124,6 +125,7 @@ class LayerLevel(BaseModel):

layer: Tuple[int, int]
thickness: float
thickness_tolerance: Optional[float] = None
zmin: float
material: Optional[str] = None
sidewall_angle: float = 0
Expand All @@ -135,9 +137,13 @@ class LayerStack(BaseModel):
Parameters:
layers: dict of layer_levels.
box_thickness: in um.
box_thickness_tolerance: standard deviation in um.
"""

layers: Dict[str, LayerLevel]
box_thickness: Optional[float] = None
box_thickness_tolerance: Optional[float] = None

def get_layer_to_thickness(self) -> Dict[Tuple[int, int], float]:
"""Returns layer tuple to thickness (um)."""
Expand Down

0 comments on commit 33b468a

Please sign in to comment.