optical pins name revised. Pin type added
This commit is contained in:
@@ -134,8 +134,12 @@ class Bragg_apodized:
|
||||
nd.strt(length=self.Period*(1-self.eta_etch),width=self.dT,xs=self.xs).put(_X_,_Y_,0)
|
||||
nd.strt(length=self.Period*(1-self.eta_etch),width=self.dT,xs=self.xs).put(_X_+ds,-_Y_,0)
|
||||
|
||||
nd.Pin(name='a1',pin=INSTR.pin['a0'],width=self.w).put()
|
||||
nd.Pin(name='b1',pin=INSTR.pin['b0'],width=self.w).put()
|
||||
## revised in 2026.06.07 by Qin Yue
|
||||
# legacy: nd.Pin(name='a1',pin=INSTR.pin['a0'],width=self.w).put()
|
||||
nd.Pin(name='opt_a1',pin=INSTR.pin['a0'],width=self.w,type="optical:").put()
|
||||
## revised in 2026.06.07 by Qin Yue
|
||||
# legacy: nd.Pin(name='b1',pin=INSTR.pin['b0'],width=self.w).put()
|
||||
nd.Pin(name='opt_b1',pin=INSTR.pin['b0'],width=self.w,type="optical:").put()
|
||||
if (self.show_pins):
|
||||
nd.put_stub(pinsize=3)
|
||||
return C
|
||||
@@ -147,8 +151,12 @@ class Bragg_apodized:
|
||||
L_brg = self.Period*self.N
|
||||
|
||||
INSTR = nd.strt(length=L_brg,width=self.w,xs=self.xs).put(0,0,0)
|
||||
nd.Pin(name='a1',pin=INSTR.pin['a0'],width=self.w).put()
|
||||
nd.Pin(name='b1',pin=INSTR.pin['b0'],width=self.w).put()
|
||||
## revised in 2026.06.07 by Qin Yue
|
||||
# legacy: nd.Pin(name='a1',pin=INSTR.pin['a0'],width=self.w).put()
|
||||
nd.Pin(name='opt_a1',pin=INSTR.pin['a0'],width=self.w,type="optical:").put()
|
||||
## revised in 2026.06.07 by Qin Yue
|
||||
# legacy: nd.Pin(name='b1',pin=INSTR.pin['b0'],width=self.w).put()
|
||||
nd.Pin(name='opt_b1',pin=INSTR.pin['b0'],width=self.w,type="optical:").put()
|
||||
for idx in range(0,self.N):
|
||||
_X_ = idx*self.Period + (1-self.eta_etch)*self.Period
|
||||
_Y_ = w_core/2 + self.dT/2
|
||||
|
||||
Reference in New Issue
Block a user