Technolgy file archetecture revised with dictionary input method

This commit is contained in:
=
2026-06-07 17:07:20 +08:00
parent 8a17f1dde0
commit 54d20eb154
163 changed files with 5948 additions and 1297 deletions
+26
View File
@@ -1,3 +1,5 @@
"""Loop mirror composite layouts."""
from typing import Any
import nazca as nd
import numpy as np
@@ -13,6 +15,30 @@ from ..primitives.passive import waveguide
class LoopMirror():
"""Loop mirror reflector built from a beam splitter and return bend.
Parameters
----------
xs_wg : str, optional
Waveguide cross-section name.
w_wg : float, optional
Optical waveguide width in microns.
Radius : float, optional
Bend radius used for the loop mirror routing.
angle : float, optional
Bend angle in degrees for the side bends.
sharp_patch : bool, optional
Add cladding patch geometry around sharp loop features.
BS : Any, optional
Beam splitter object or cell. If not provided, a default directional
coupler is generated.
Attributes
----------
cell : nazca.Cell
Generated loop mirror layout cell.
"""
def __init__(self,
xs_wg: str='strip',
w_wg: float=0.45,