Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to latest gdsfactory #518

Merged
merged 2 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gplugins/gmeep/get_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import meep as mp
import numpy as np
from gdsfactory.component import Component
from gdsfactory.components.extension import extend_ports, move_polar_rad_copy
from gdsfactory.components.containers.extension import extend_ports, move_polar_rad_copy
from gdsfactory.pdk import get_layer_stack
from gdsfactory.technology import LayerStack

Expand Down Expand Up @@ -108,6 +108,7 @@ def get_simulation(
wavelength_points: wavelength steps.
dfcen: delta frequency.
port_source_name: input port name.
port_source_mode: mode number for source.
port_margin: margin on each side of the port.
distance_source_to_monitors: in (um) source goes before.
port_source_offset: offset between source GDS port and source MEEP port.
Expand Down
10 changes: 9 additions & 1 deletion gplugins/klayout/drc/write_drc.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def check_width(value: float | int, layer: str, angle_limit: float = 90.0) -> st
Args:
value: width in um if float, dbu if int (nm).
layer: layer name.
angle_limit: angle limit in degrees.
"""
category = "width"
Expand All @@ -153,6 +154,7 @@ def check_space(value: float | int, layer: str, angle_limit: float = 90.0) -> st
Args:
value: width in um if float, dbu if int (nm).
layer: layer name.
angle_limit: angle limit in degrees.
"""
category = "space"
Expand Down Expand Up @@ -198,7 +200,7 @@ def check_area(layer: str, min_area_um2: float | int = 2.0) -> str:
"""Return script for min area checking.
Args:
layer1: layer name.
layer: layer name.
min_area_um2: min area in um2. int if dbu, float if um.
"""
Expand Down Expand Up @@ -449,6 +451,12 @@ def write_drc_deck_macro(
derived_layer_boolean("TRENCH", "SLAB90", "-", "WG"),
check_width(layer="WG", value=0.2),
check_space(layer="WG", value=0.2),
check_width(layer="M1", value=0.2),
check_space(layer="M1", value=0.2),
check_width(layer="M2", value=1.0),
check_space(layer="M2", value=1.0),
check_width(layer="M3", value=1.0),
check_space(layer="M3", value=1.0),
check_separation(layer1="HEATER", layer2="M1", value=1.0),
check_enclosing(layer1="VIAC", layer2="M1", value=0.2),
check_area(layer="WG", min_area_um2=0.05),
Expand Down
8 changes: 5 additions & 3 deletions gplugins/tidy3d/get_simulation_grating_coupler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from gdsfactory import logger
from gdsfactory.add_padding import add_padding_container
from gdsfactory.component import Component
from gdsfactory.components.extension import move_polar_rad_copy
from gdsfactory.components.containers.extension import move_polar_rad_copy
from gdsfactory.pdk import get_layer_stack
from gdsfactory.technology import LayerStack
from gdsfactory.typings import CrossSectionSpec
Expand Down Expand Up @@ -138,8 +138,8 @@ def get_simulation_grating_coupler(
ymargin_bot: bottom distance from component to PML.
zmargin: thickness for cladding above and below core.
clad_material: material for cladding.
box_material:
substrate_material:
box_material: material for box.
substrate_material: material for substrate.
box_thickness: (um).
substrate_thickness: (um).
port_waveguide_name: input port name.
Expand Down Expand Up @@ -180,11 +180,13 @@ def get_simulation_grating_coupler(
Angle of the sidewall.
``sidewall_angle=0`` (default) specifies vertical wall,
while ``0<sidewall_angle_deg<90`` for the base to be larger than the top.
padding_layer: layer to use for padding.
dilation: float = 0.0
Dilation of the polygon in the base by shifting each edge along its
normal outwards direction by a distance;
a negative value corresponds to erosion.
cross_section: optional cross_section to extend ports beyond PML.
kwargs: Additional keyword arguments to pass to the Simulation constructor.

Keyword Args:
symmetry: Define Symmetries.
Expand Down
Loading