-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
22 lines (18 loc) · 681 Bytes
/
Copy pathtest.py
File metadata and controls
22 lines (18 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from drawing import *
from drawing.junction.antisymmetric_junction import AntisymmetricJunctionConfig
from drawing.junction.symmetric_junction import SymmetricJunctionConfig
from drawing.junction.funnel_arm import FunnelrArmConfig
import matplotlib.pyplot as plt
import gdsfactory as gf
from drawing.snail.snail import SnailConfig
plotc = gf.Component()
s = SnailConfig()
s_ref = plotc << s.build()
plotc.add_ports(s_ref.ports, prefix="Snail")
plotc.draw_ports()
plotc.pprint_ports()
plotc.plot()
print(SymmetricJunctionConfig().total_length())
# print(SymmetricJunctionConfig(arm=FunnelrArmConfig()).total_length())
# print(SymmetricJunctionConfig().total_length())
plt.show()