Updated of the forge from github with image system online

This commit is contained in:
2026-05-08 16:20:49 +08:00
parent d7c19ed782
commit 9f2e3f3f78
152 changed files with 1573 additions and 1201 deletions
@@ -1 +0,0 @@
from .primitives import *
@@ -1,30 +0,0 @@
from _typeshed import Incomplete
class EC_dual_layer_px3:
name: Incomplete
instantiate: bool
w_in: Incomplete
L_in: Incomplete
Ltp1: Incomplete
Ltp2: Incomplete
Ltp3: Incomplete
L_end: Incomplete
w_tip_core: Incomplete
w1_slab: Incomplete
w_tip_slab: Incomplete
w_mid_slab: Incomplete
w_box: Incomplete
w_box_end: Incomplete
L_box_end: Incomplete
w_DT: Incomplete
xs_SiN: Incomplete
layer_SiN_slab: Incomplete
layer_top_cover: Incomplete
layer_dum_exl_be: Incomplete
layer_DT: Incomplete
xs_Trench: Incomplete
angle_tile: Incomplete
R_bend: Incomplete
cell: Incomplete
def __init__(self, name, w_in, L_in, Ltp1, Ltp2, Ltp3, L_end: int = 0, w_tip_core: float = 0.2, w1_slab: float = 0.6, w_tip_slab: float = 0.2, w_mid_slab: float = 0.45, w_box: int = 8, w_box_end: int = 12, L_box_end: int = 2, w_DT: int = 12, xs_SiN: str = 'sin', layer_SiN_slab: str = 'SiN_Rib_WG', layer_DT: str = 'OXIDE_FACET', xs_Trench: str = 'air_trench', layer_top_cover: str = 'PAD_OPTICAL', layer_dum_exl_be: str = None, angle_tile: int = 8, R_bend: int = 50) -> None: ...
def generate_gds(self): ...
@@ -1,5 +0,0 @@
from .directional_couplers import *
from .EC_dual_layer_px3 import *
from .beam_splitters import *
from .multimode_interferometers import *
from .spiral import *
@@ -1,39 +0,0 @@
from ...structures import *
from ...foundries import *
import numpy as np
from ...basic import __cell_arg__ as __cell_arg__
from ...routing import Route as Route
from _typeshed import Incomplete
class YBranch:
name: Incomplete
instantiate: bool
w: Incomplete
L: Incomplete
res: Incomplete
R_att: Incomplete
A_att: Incomplete
w_port: Incomplete
xs: Incomplete
cell: Incomplete
def __init__(self, name: str = None, xs: str = 'strip', w: list | np.ndarray = [1.2, 1.0, 1.8, 1.2, 1.0, 1.2, 1.2], L: float = 6, R_att: float = 10, A_att: float = 10, w_port: float = 0.45, show_pins: bool = False, sharp_patch: bool = True, res: float = 0.1) -> None: ...
def generate_gds(self, show_pins: bool = False, sharp_patch: bool = True): ...
class Ybranch_3wg:
name: Incomplete
instantiate: bool
w0: Incomplete
w1: Incomplete
gap: Incomplete
Lcp: Incomplete
xs: Incomplete
w_wg: Incomplete
R0: Incomplete
angle: Incomplete
L_attach: Incomplete
L_in_tp: Incomplete
cell: Incomplete
L: Incomplete
def __init__(self, name=None, w0: float = 0.4, w1: float = 0.2, gap: float = 0.18, Lcp: float = 20, xs: str = 'strip', w_wg: float = 0.45, R0: float = 10, angle: float = 20, L_attach: float = 3, L_in_tp: float = 3, sharp_patch: bool = True) -> None: ...
def generate_gds(self, sharp_patch, err_asy: int = 0): ...
def generate_test_gds(self, gc, dX_gc2gc: int = 400, dY_gc2gc: int = 80, sharp_patch: bool = True, Rbend: int = 15): ...
@@ -1,141 +0,0 @@
from ...basic import __cell_arg__ as __cell_arg__
from ...routing import Route as Route
from ...structures import Clothoid as Clothoid, circle as circle
from _typeshed import Incomplete
class ring_bus_wg:
xs: Incomplete
R_cp: Incomplete
w_bus: Incomplete
dLc: Incomplete
dAc: Incomplete
w_wg: Incomplete
bend_DC: Incomplete
euler_transistion: Incomplete
dL_trans: Incomplete
dA_trans: Incomplete
R_max_trans: Incomplete
w_trans: Incomplete
R_max_anti: Incomplete
R_min_anti: Incomplete
A_anti: Incomplete
wg_Ltp: Incomplete
dL_p2p: Incomplete
res: Incomplete
end_patch: Incomplete
L: int
clothoid_order: Incomplete
cell: Incomplete
def __init__(self, xs: str = 'strip', R_cp: int = 20, w_bus: float = 0.5, bend_DC: bool = True, w_wg: float = 0.5, dLc: int = 10, dAc: int = 10, euler_transistion: bool = False, dL_trans: int = 10, dA_trans: int = 30, R_max_trans: int = 100, w_trans: float = 0.5, euler_anti_bend: bool = False, R_max_anti: int = 100, R_min_anti: int = 10, A_anti=None, res: float = 0.1, wg_Ltp: int = 5, dL_p2p=None, sharp_patch: bool = True, show_pins: bool = False, end_patch: bool = False, clothoid_order: int = 1) -> None: ...
w: Incomplete
sz: Incomplete
def generate_gds(self, sharp_patch, show_pins: bool = False): ...
class ADC_STD_2x2:
name: Incomplete
instantiate: bool
wu0: Incomplete
xs: Incomplete
wu1: Incomplete
wu_in: Incomplete
wu_out: Incomplete
wd0: Incomplete
wd1: Incomplete
wd_in: Incomplete
wd_out: Incomplete
Lu: Incomplete
Ld: Incomplete
angle: Incomplete
g0: Incomplete
g1: Incomplete
sbend_type: Incomplete
Rmax: Incomplete
Rmin: Incomplete
sharp_patch: Incomplete
euler_points: Incomplete
res: Incomplete
Ru0: Incomplete
Ru1: Incomplete
Rd0: Incomplete
Rd1: Incomplete
tp_angle: Incomplete
cell: Incomplete
L: Incomplete
def __init__(self, name=None, xs: str = 'strip', wu0: float = 0.45, wu1: float = 0.61, wu_in: float = 0.45, wu_out: float = 0.8, wd0: float = 0.33, wd1: float = 0.2, wd_in: float = 0.45, wd_out: float = 0.8, Lu: int = 33, Ld: int = 33, angle: int = 20, g0: float = 0.2, g1: float = 0.2, sbend_type: str = 'euler', Rmax=None, Rmin: int = 5, Ru0: int = 0, Ru1: int = 20, Rd0: int = 20, Rd1: int = 0, tp_angle: int = 2, sharp_patch: bool = True, show_pins: bool = False, euler_points: int = 64, res: float = 0.1) -> None: ...
def generate_gds(self, err: int = 0, show_pins: bool = False): ...
err: Incomplete
def generate_err(self, err: float = 0.02): ...
def generate_test_gds(self, gc, dX_gc2gc: int = 400, dY_gc2gc: int = 80, sharp_patch: bool = True): ...
class DC(ADC_STD_2x2):
def __init__(self, name=None, xs: str = 'strip', w_cp: float = 0.45, w_wg: float = 0.45, L_cp: float = 30, angle: float = 20, gap: float = 0.2, sbend_type: str = 'circular', Rmax: float = None, Rmin: float = 5, R0: float = 10, tp_angle: float = 2, sharp_patch: bool = True, show_pins: bool = False) -> None: ...
def generate_test_gds(self, gc, dX_gc2gc: int = 300, dY_gc2gc: int = 40, sharp_patch: bool = True): ...
class BS_tdc(ADC_STD_2x2):
def __init__(self, name=None, xs: str = 'strip', wa0: float = 0.35, wa1: float = 0.45, wb0: float = 0.55, wb1: float = 0.45, w_wg: float = 0.45, gap: float = 0.2, Lt: float = 20, R0: float = 30, angle: float = 15, sbend_type: str = 'circle') -> None: ...
class MDM(ADC_STD_2x2):
wb0: Incomplete
wb1: Incomplete
w0: Incomplete
w1: Incomplete
w_wg: Incomplete
gap0: Incomplete
gap1: Incomplete
Lt_bus: Incomplete
Lt_cp: Incomplete
xs: Incomplete
R0: Incomplete
angle: Incomplete
symmetric_BUS: Incomplete
Rmin: Incomplete
L: Incomplete
def __init__(self, name=None, xs: str = 'strip', wb0: float = 0.45, wb1: float = 0.61, wb_in: float = 0.45, wb_out: float = 0.88, w_wg: float = 0.45, w0: float = 0.33, w1: float = 0.2, gap0: float = 0.2, Lt_bus: float = 20, R0: float = 40, angle: float = 22.5, Lt_cp: float = None, gap1: float = None, Lb0: float = None, symmetric_BUS: bool = True, single_end: bool = True, Rmin: float = 8) -> None: ...
def generate_test_gds(self, gc, dX_gc2gc: int = 300, dY_gc2gc: int = 40, sharp_patch: bool = True): ...
class DC_bend:
name: Incomplete
instantiate: bool
w_in: Incomplete
w_out: Incomplete
gap: Incomplete
r_in: Incomplete
r_out: Incomplete
theta_arc: Incomplete
theta_ext: Incomplete
w_wg: Incomplete
xs_wg: Incomplete
sharp_patch: Incomplete
show_pins: Incomplete
cell: Incomplete
def __init__(self, name=None, w_in: float = 0.45, w_out: float = 0.45, gap: float = 0.2, r_in: int = 40, theta_arc: int = 30, w_wg: float = 0.45, theta_ext: int = 15, xs_wg: str = 'strip', sharp_patch: bool = True, show_pins: bool = False) -> None: ...
width: Incomplete
length: Incomplete
def generate_gds(self, cellname: str = ''): ...
def generate_test_gds(self, gc, dX_gc2gc: int = 300, dY_gc2gc: int = 40, sharp_patch: bool = True): ...
class DC_pX_3sg:
name: Incomplete
instantiate: bool
xs_wg: Incomplete
Lc1: Incomplete
Lp1: Incomplete
Lc2: Incomplete
Lt: Incomplete
w_cp: Incomplete
dw: Incomplete
gap: Incomplete
R0: Incomplete
A: Incomplete
w_wg: Incomplete
sharp_patch: Incomplete
pX_type: Incomplete
port_symmetric: Incomplete
cell: Incomplete
cellU: Incomplete
cellD: Incomplete
L: Incomplete
length: Incomplete
def __init__(self, name=None, xs_wg: str = 'strip', Lc1: float = 10, Lp1: float = 5, Lc2: float = 10, Lt: float = 1, w_cp: float = 0.5, dw: float = 0.1, gap: float = 0.2, R0: float = 10, A: float = 15, w_wg: float = 0.45, pX_type: str = 'symmetric', port_symmetric: bool = True, sharp_patch: bool = True) -> None: ...
def generate_gds(self, err: int = 0): ...
def generate_test_gds(self, gc, dX_gc2gc: int = 300, dY_gc2gc: int = 40, sharp_patch: bool = True): ...
@@ -1,143 +0,0 @@
from ...basic import __cell_arg__ as __cell_arg__
from ...routing import Route as Route
from ...structures import Clothoid as Clothoid, circle as circle, hole as hole
from _typeshed import Incomplete
class Nano_ant:
w_wg: Incomplete
xs_wg: Incomplete
etch_type: str
vector: Incomplete
teeth_number: Incomplete
pitch: Incomplete
duty_cycle: Incomplete
taper_length: Incomplete
ant_length: Incomplete
width: Incomplete
max_theta: Incomplete
define_type: Incomplete
etch_depth: Incomplete
show_pins: Incomplete
cell: Incomplete
def __init__(self, w_wg: float = 0.41, xs_wg: str = 'strip', define_type: str = 'non-periodic', vector: float | list = [0.5, 0.5, 0.5, 0.5, 0.5, 0.5], taper_length: float = 3, width: float = 6, max_theta: float = 110, pitch: float | list = 0.6, duty_cycle: float | list = 0.3, teeth_number: float = 6, etch_depth: str | list = ['METCH'], show_pins: bool = True) -> None: ...
def generate_gds(self, sample_step: float = 0.1, cell_name: str = 'Nanoantenna'): ...
def generate_gds_positive(self, sample_step: float = 0.1): ...
def generate_gds_error(self) -> None: ...
class Taper:
width1: Incomplete
width2: Incomplete
length: Incomplete
type: Incomplete
order: int
show_pins: Incomplete
cell: Incomplete
def __init__(self, width1: int = 4, width2: float = 0.45, length: int = 30, type: str = 'linear', show_pins: bool = False) -> None: ...
def generate_gds(self): ...
class Grating_2D_Hole:
w_wg: Incomplete
w_gt: Incomplete
l_taper: Incomplete
type_taper: Incomplete
gt_vector: Incomplete
gt_num: Incomplete
gt_diameter: Incomplete
gt_layer: Incomplete
polysi_vector: Incomplete
polysi_num: Incomplete
polysi_diameter: Incomplete
polysi_layer: Incomplete
reflector_vector: Incomplete
l_field_center: Incomplete
cell: Incomplete
def __init__(self, w_wg: float = 0.5, w_gt: int = 5, l_taper: int = 30, type_taper: str = 'parabolic', gt_vector=[0.5, 0.5, 0.5, 0.5, 0.5], gt_diameter: float = 0.4, gt_layer: str = 'STRIP_COR', polysi_vector=[0.5, 0.5, 0.5, 0.5, 0.5], polysi_diameter: float = 0.4, polysi_layer: str = 'FCW_TRE', reflector_vector=[0.3, 0.3, 0.3, 0.3, 0.3, 0.3], l_field_center: int = 1) -> None: ...
reflector_num: Incomplete
def generate_gds(self): ...
class Grating_2D_Hole_4Rec:
gt_2D_class: Incomplete
cell_unit: Incomplete
mode_radius: Incomplete
field_center: Incomplete
show_pins: Incomplete
cell_name: Incomplete
cell: Incomplete
def __init__(self, grating_unit, mode_radius: int = 8, cell_name=None, show_pins: bool = False) -> None: ...
def generate_gds(self): ...
class Grating_2D_Hole_3Rec:
gt_2D_class: Incomplete
cell_unit: Incomplete
mode_radius: Incomplete
cell_name: Incomplete
field_center: Incomplete
show_pins: Incomplete
cell: Incomplete
def __init__(self, grating_unit, mode_radius: float = 6.5, cell_name=None, show_pins: bool = False) -> None: ...
def generate_gds(self): ...
class GC_STD_2D:
name: Incomplete
instantiate: bool
num_x: Incomplete
num_y: Incomplete
Lx_taper: Incomplete
Ly_taper: Incomplete
Lx_end: Incomplete
Ly_end: Incomplete
Lx_side: Incomplete
Ly_side: Incomplete
Lx_port: Incomplete
Ly_port: Incomplete
xs_open: Incomplete
w_wg: Incomplete
xs_wg: Incomplete
etch_type: Incomplete
shape: Incomplete
hole_shape: Incomplete
Dx_hole: Incomplete
Dy_hole: Incomplete
Px: Incomplete
Py: Incomplete
P_AR: Incomplete
L_AR: Incomplete
show_pins: Incomplete
positive: bool
layer_etch: Incomplete
cell: Incomplete
def __init__(self, name=None, etch_type: str = 'FETCH', xs_wg: str = 'grating', Dx_hole: float = 0.3, Dy_hole: float = 0.3, hole_shape: str = 'circle', shape: str = 'circle', xs_open: str = None, Px: float = 0.57, Py: float = 0.57, num_x: float = 25, num_y: float = 25, Lx_taper: float = 50, Ly_taper: float = 0, Lx_end: float = 1, Ly_end: float = 1, Lx_side: float = 0.5, Ly_side: float = 0.5, Lx_port: float = 5, Ly_port: float = 5, w_wg: float = 0.5, show_pins: bool = False, P_AR: float = 0.6, L_AR: float = 1) -> None: ...
def generate_negative(self): ...
def generate_positive(self): ...
def generate_test_gds(self, dX_gc2gc: int = 300): ...
class GC_STD_1D:
name: Incomplete
instantiate: bool
xs_open: Incomplete
xs_wg: Incomplete
w_wg: Incomplete
L_taper: Incomplete
L_end: Incomplete
A_taper: Incomplete
show_pins: Incomplete
L_tail: Incomplete
positive: bool
Period: Incomplete
eta_etch: Incomplete
num: Incomplete
sector_gc: Incomplete
L_AR: Incomplete
P_AR: Incomplete
layer_etch: Incomplete
cell: Incomplete
def __init__(self, name=None, xs_wg: str = 'strip', w_wg: float = 0.5, etch_type: str = 'FETCH', xs_open: str = None, L_taper: float = 10, L_end: float = 2, A_taper: float = 30, Period: float = 0.5, eta_etch: float = 0.5, num: float = 20, sector_gc: bool = True, show_pins: bool = False, L_tail: int = 2, P_AR: float = 1, L_AR: float = 2) -> None: ...
def generate_negative(self): ...
def generate_positive(self): ...
def generate_test_dev(self, dX_gc2gc): ...
class FA:
pitch: Incomplete
number: Incomplete
cell: Incomplete
def __init__(self, fiber_coupler, pitch, number, show_pins: bool = False) -> None: ...
@@ -1,29 +0,0 @@
from ...structures import *
from ...routing import Route as Route
from ...structures import Conchoid as Conchoid
from _typeshed import Incomplete
from turtle import shape as shape
class MMI_ML:
name: Incomplete
instantiate: bool
L_arm: Incomplete
xs: Incomplete
w_arm: Incomplete
arm_sine_width: Incomplete
L_mmi: Incomplete
w_mmi: Incomplete
res: Incomplete
N_out: Incomplete
N_in: Incomplete
Dp_out: Incomplete
Dp_in: Incomplete
mmi_sine_width: Incomplete
cell: Incomplete
L: Incomplete
def __init__(self, name=None, L_arm=[10], w_arm=[0.45, 1.35], xs: str = 'strip', arm_sine_width: bool = False, L_mmi=[10], w_mmi=[5, 5], mmi_sine_width: bool = False, sharp_patch: bool = True, show_pins: bool = False, res: float = 0.01, N_out: int = 3, N_in: int = 1, Dp_out: float = 1.5, Dp_in: float = 1.5) -> None: ...
def generate_gds(self, sharp_patch, show_pins): ...
def generate_test_gds(self, gc, dX_gc2gc, dY_gc2gc, R_bend: int = 10, Xout_offset: int = 50): ...
class MMI_STD(MMI_ML):
def __init__(self, name=None, N_out: int = 3, N_in: int = 1, L_arm: int = 10, w_wg: float = 0.45, w_port: float = 1.2, xs: str = 'strip', L_mmi: int = 10, w_mmi: int = 5, sharp_patch: bool = True, show_pins: bool = False, Dp_out: float = 1.5, Dp_in: float = 1.5) -> None: ...
@@ -1,108 +0,0 @@
from ...structures import *
from ...foundries import *
import nazca as nd
from ...routing import Route as Route
from ...structures import Conchoid as Conchoid
from _typeshed import Incomplete
from scipy import optimize as optimize
class spiral:
Dmin: Incomplete
Lmin: Incomplete
R_bend: Incomplete
shape: Incomplete
cycles: Incomplete
width: Incomplete
w_port: Incomplete
gap: Incomplete
xs: Incomplete
layer: Incomplete
name: Incomplete
instantiate: bool
port_angle: Incomplete
w_bend_center: Incomplete
Rmin_bend_center: Incomplete
Euler_bend: Incomplete
Rmin_euler: Incomplete
sharp_patch: Incomplete
w_bend_port: Incomplete
Ltp_port: Incomplete
cell_transition: Incomplete
res: Incomplete
cell: Incomplete
def __init__(self, name: str = None, shape: str = 'circle', Dmin: float = 50, R_bend: float = 10, Rmin_euler: float = 10, Lmin: float = 50, width: float = 2, w_port: float = 0.45, w_bend_center: float = 1, Rmin_bend_center: float = 10, gap: float = 1, cycles: float = 20, xs: str = 'strip', layer: str = None, w_bend_port=None, Ltp_port: int = 10, res: float = 0.5, cell_transition: nd.Cell = None, port_angle: float = 180, Euler_bend: bool = False, show_pins: bool = False, sharp_patch: bool = True) -> None: ...
def __strt_with_taper__(self, width1, width2, xs, length, Ltp: int = 15, Lstart: int = 2): ...
Atilt: Incomplete
L: Incomplete
Ru: Incomplete
Rd: Incomplete
bend_cell: Incomplete
def generate_gds(self, show_pins): ...
class spiral_rectangle:
Dmin: Incomplete
Lmin: Incomplete
Rmax_bend: Incomplete
Rmin_bend: Incomplete
wmin_bend: Incomplete
cycles: Incomplete
width: Incomplete
w_port: Incomplete
gap: Incomplete
xs: Incomplete
layer: Incomplete
Ltp: Incomplete
Lpatch: Incomplete
name: Incomplete
instantiate: bool
port_angle: Incomplete
sharp_patch: Incomplete
w_bend_port: Incomplete
Lport: Incomplete
cell_xs_transition: Incomplete
res: Incomplete
in_out_align: Incomplete
cell: Incomplete
def __init__(self, name: str = None, Dmin: float = 50, Rmax_bend: float = 10, Rmin_bend: float = 10, wmin_bend: float = 10, Lmin: float = 50, width: float = 2, w_port: float = 0.45, gap: float = 1, cycles: float = 20, xs: str = 'strip', layer: str = None, w_bend_port=None, Lport: int = 10, Ltp: int = 10, res: float = 0.5, cell_xs_transition=None, port_angle: float = 180, show_pins: bool = False, sharp_patch: bool = True, in_out_align: bool = True, Lpatch: float = 0.05) -> None: ...
def __strt_with_taper__(self, width1, width2, xs, length, Ltp: int = 15, Lstart: int = 2): ...
bend_cell: Incomplete
L: Incomplete
def generate_gds(self, show_pins): ...
class Spiral_Rect_STD(spiral_rectangle):
def __init__(self, name: str = None, Dmin: float = 50, R_bend: float = 10, Lmin: float = 50, width: float = 2, w_port: float = 0.45, gap: float = 1, cycles: float = 20, xs: str = 'strip', layer: str = None, Lport: int = 10, in_out_align: bool = True, res: float = 0.5, cell_xs_transition=None, port_angle: float = 180, show_pins: bool = False, sharp_patch: bool = True) -> None: ...
class spiral_circle:
Dmin: Incomplete
cycles: Incomplete
width: Incomplete
w_port: Incomplete
gap: Incomplete
xs: Incomplete
layer: Incomplete
name: Incomplete
instantiate: bool
port_angle: Incomplete
w_bend_center: Incomplete
Euler_Sbend: Incomplete
sharp_patch: Incomplete
Lport: Incomplete
rib2strip: Incomplete
res: Incomplete
strict_condition: Incomplete
R_ratio_mamnual: Incomplete
cell: Incomplete
def __init__(self, name: str = None, Dmin: float = 50, width: float = 2, w_port: float = 0.45, w_bend_center: float = 1, gap: float = 1, cycles: float = 20, xs: str = 'strip', layer: str = None, Lport: int = 10, res: float = 0.5, rib2strip: bool = True, port_angle: float = 180, Euler_Sbend: bool = False, show_pins: bool = False, sharp_patch: bool = True, strict_condition: bool = False, R_ratio_mamnual=None) -> None: ...
def opt_euler(self, R, R0): ...
Atilt: Incomplete
Rmax: Incomplete
L: Incomplete
Ru: Incomplete
Rd: Incomplete
def generate_gds(self, show_pins): ...
class Spiral_Cicle_MM(spiral_circle):
def __init__(self, name: str = None, Dmin: float = 50, width: float = 2, w_port: float = 0.45, w_bend_center: float = 1, gap: float = 1, cycles: float = 20, xs: str = 'strip', layer: str = None, Lport: int = 10, res: float = 0.5, rib2strip: bool = True, port_angle: float = 180, show_pins: bool = False, sharp_patch: bool = True, strict_condition: bool = False) -> None: ...
class Spiral_Cicle_STD(spiral_circle):
def __init__(self, name: str = None, Dmin: float = 50, width: float = 2, w_port: float = 0.45, gap: float = 1, cycles: float = 20, xs: str = 'strip', layer: str = None, Lport: int = 10, res: float = 0.5, rib2strip: bool = True, port_angle: float = 180, show_pins: bool = False, sharp_patch: bool = True, strict_condition: bool = False) -> None: ...