Update to github version

This commit is contained in:
2026-05-17 11:58:41 +08:00
parent 9f2e3f3f78
commit 52be015967
100 changed files with 870 additions and 675 deletions
+5 -1
View File
@@ -565,7 +565,11 @@ class spiral_rectangle:
print("WARNING: In <mxpic::passive::spiral>, Dmin too small")
D_port = self.Dmin - bend_sz[1]*2
with nd.Cell(instantiate=True,name="wg_mid_cell"+self.name) as wg_mid_cell:
if (self.name is None):
wg_mid_name = None
else:
wg_mid_name = "wg_mid_cell"+self.name
with nd.Cell(instantiate=self.instantiate,name=wg_mid_name) as wg_mid_cell:
wg = self.__strt_with_taper__(length=self.Lmin-bend_sz[0]*2-bend_sz[0],width2=self.width,width1=bend_cell.pin['a0'].
width,xs=self.xs,Ltp=self.Ltp).put(-self.Lmin/2+bend_sz[0]*2+bend_sz[0],0,0,flip=1)