Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Jun 23, 2024
1 parent fa75171 commit cd454c3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cspdk/si220/samples/circuit_simulations_sc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from cspdk.si220 import PDK, cells

if __name__ == "__main__":
c = cells.mzi_sc(delta_length=50)
c = cells.mzi_sc(delta_length=25)
c.show()
netlist = c.get_netlist()
c.plot_netlist()
Expand Down
3 changes: 2 additions & 1 deletion cspdk/si220/samples/circuit_simulations_sc_with_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
mzi1 = c << cells.mzi_sc(delta_length=10)
mzi2 = c << cells.mzi_sc(delta_length=100)
mzi2.dmove((200, 200))
route = tech.route_single_sc(c, mzi1.ports["o2"], mzi2.ports["o1"])
# route = tech.route_single_sc(c, mzi1.ports["o2"], mzi2.ports["o1"])
route = tech.route_bundle_sc(c, [mzi1.ports["o2"]], [mzi2.ports["o1"]])
c.add_port(name="o1", port=mzi1.ports["o1"])
c.add_port(name="o2", port=mzi2.ports["o2"])
c.show()
Expand Down
8 changes: 4 additions & 4 deletions cspdk/si220/tech.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,22 +152,22 @@ class Tech:

_settings_sc = dict(
straight="straight_sc",
cross_section=xs_sc,
cross_section="xs_sc",
bend="bend_sc",
)
_settings_so = dict(
straight="straight_so",
cross_section=xs_so,
cross_section="xs_so",
bend="bend_so",
)
_settings_rc = dict(
straight="straight_rc",
cross_section=xs_rc,
cross_section="xs_rc",
bend="bend_rc",
)
_settings_ro = dict(
straight="straight_ro",
cross_section=xs_ro,
cross_section="xs_ro",
bend="bend_ro",
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
"Operating System :: OS Independent"
]
dependencies = [
"gdsfactory~=8.2.0",
"gdsfactory~=8.2.3",
"gplugins[sax]>=1,<2"
]
description = "CornerStone PDK"
Expand Down

0 comments on commit cd454c3

Please sign in to comment.