Skip to content

Commit

Permalink
add info
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Aug 13, 2023
1 parent 7cea348 commit 1f42aec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kgeneric/cells/dbu/straight.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def straight(

if enclosure is not None:
enclosure.apply_minkowski_y(c, layer)
c.settings = {
c.info = {
"width_um": width * c.kcl.dbu,
"length_um": length * c.kcl.dbu,
"layer": layer,
Expand Down
6 changes: 3 additions & 3 deletions kgeneric/cells/dbu/taper.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def taper(

if enclosure is not None:
enclosure.apply_minkowski_y(c, kdb.Region(c.bbox()))
c.settings["width1_um"] = width1 * c.kcl.dbu
c.settings["width2_um"] = width2 * c.kcl.dbu
c.settings["length_um"] = length * c.kcl.dbu
c.info["width1_um"] = width1 * c.kcl.dbu
c.info["width2_um"] = width2 * c.kcl.dbu
c.info["length_um"] = length * c.kcl.dbu

return c
6 changes: 3 additions & 3 deletions kgeneric/cells/grating_coupler_elliptical.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def grating_coupler_elliptical(
trench_line_width = _period - grating_line_width

c = kf.KCell()
# c.settings["polarization"] = polarization
# c.settings["wavelength"] = lambda_c * 1e3
c.info["polarization"] = polarization
c.info["wavelength"] = lambda_c * 1e3

# Make each grating line

Expand Down Expand Up @@ -130,7 +130,7 @@ def _get_taper_pts(
c.transform(kf.kdb.Trans(int(-x_output - taper_offset), 0))

# Add port
# c.settings["period"] = _period
c.info["period"] = _period

# Add GC Fibre launch reference port, we are putting it at the same place
# as the other I/O port for now
Expand Down

0 comments on commit 1f42aec

Please sign in to comment.