Skip to content

Commit

Permalink
Merge branch 'kfactory09'
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Oct 5, 2023
2 parents ad499c6 + eddf53d commit b6cdbfb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Binary file modified coupler_G0p2_L10_D5_D5_W0p5_LWG_E8a9ff7cf.gds
Binary file not shown.
2 changes: 1 addition & 1 deletion kgeneric/cells/euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,5 @@ def bend_s_euler(
from kgeneric import LAYER

c = bend_euler(width=1, radius=10, layer=LAYER.WG)
c.draw_ports()
# c.draw_ports()
c.show()
6 changes: 4 additions & 2 deletions kgeneric/cells/grating_coupler_elliptical.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def grating_coupler_elliptical(
"""
DEG2RAD = np.pi / 180
sthc = np.sin(fiber_angle * DEG2RAD)
um = 1 / kf.kcl.dbu

if period is not None:
neff = lambda_c / period + clad_index * sthc
Expand Down Expand Up @@ -119,15 +120,16 @@ def _get_taper_pts(
return taper_pts, x_output

taper_pts, x_output = _get_taper_pts(n_periods_over_grating=n_periods_over_grating)

if layer_taper is not None:
c.shapes(layer_taper).insert(
kf.kdb.DPolygon(taper_pts).transformed(kf.kdb.Trans(taper_offset, 0))
)
c.create_port(
name="W0", trans=kf.kdb.Trans.R180, width=wg_width, layer=layer_taper
name="o1", trans=kf.kdb.Trans.R180, width=wg_width * um, layer=layer_taper
)

c.transform(kf.kdb.Trans(int(-x_output - taper_offset), 0))
# c.transform(kf.kdb.Trans(int(-x_output - taper_offset), 0))

# Add port
c.info["period"] = _period
Expand Down
1 change: 1 addition & 0 deletions kgeneric/samples/bend_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
b2.connect("o1", b1.ports["o2"])
# b1.flatten()
# b2.flatten()
# c.shapes.(10)
c.flatten()
c.show()

0 comments on commit b6cdbfb

Please sign in to comment.