Skip to content

Commit

Permalink
update to latest gdsfactory
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Sep 9, 2023
1 parent a5341c5 commit 7b9608c
Show file tree
Hide file tree
Showing 5 changed files with 331 additions and 77 deletions.
6 changes: 4 additions & 2 deletions gvtt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import gdsfactory
from gdsfactory.config import PATH as GPATH
from gdsfactory.get_factories import get_cells
from gdsfactory.pdk import Pdk, constants

Expand Down Expand Up @@ -49,14 +50,15 @@
name="VTT-3umSOI",
cells=cells,
cross_sections=cross_sections,
layers=LAYER.dict(),
layers=dict(LAYER),
layer_stack=None,
layer_views=LAYER_VIEWS,
layer_transitions=LAYER_TRANSITIONS,
sparameters_path=PATH.sparameters,
constants=constants,
)

GPATH.sparameters = PATH.sparameters

# pdk.register_cells_yaml(dirpath=pathlib.Path(__file__).parent.absolute())

gdsfactory.routing.all_angle.LOW_LOSS_CROSS_SECTIONS = [
Expand Down
2 changes: 1 addition & 1 deletion gvtt/components/die.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def die(
die_name: str | None = "chip99",
text_size: float = 100.0,
text_location: str | Float2 = "SW",
layer: LayerSpec = None, # "FLOORPLAN",
layer: LayerSpec | None = None, # "FLOORPLAN",
bbox_layer: LayerSpec | None = None,
draw_corners: bool = True,
draw_dicing_lane: bool = True,
Expand Down
8 changes: 2 additions & 6 deletions gvtt/layers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from gdsfactory.technology import LayerMap
from gdsfactory.typings import Layer
from pydantic import BaseModel


class LayerMap(BaseModel):
class LayerMap(LayerMap):
# waveguide types
TYPE_RIB: Layer = (89, 0)
TYPE_STRIP: Layer = (89, 1)
Expand Down Expand Up @@ -87,10 +87,6 @@ class LayerMap(BaseModel):
TM: Layer = (204, 0)
TEXT: Layer = (66, 0)

class Config:
frozen = True
extra = "forbid"


LAYER = LayerMap()

Expand Down
Loading

0 comments on commit 7b9608c

Please sign in to comment.