Folder structure simplfied
This commit is contained in:
@@ -2,13 +2,43 @@ import nazca as nd
|
||||
import numpy as np
|
||||
|
||||
|
||||
from ...structures import *
|
||||
from ...geometry import *
|
||||
|
||||
from ...routing import Route
|
||||
from . import MDM
|
||||
|
||||
|
||||
class Bragg_apodized:
|
||||
"""
|
||||
Bragg apodized primitive component.
|
||||
|
||||
This component builds the Bragg apodized layout cell.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
Period : float, optional
|
||||
Value for the Period parameter. Default is 0.3.
|
||||
w : float, optional
|
||||
Width parameter in microns. Default is 1.1.
|
||||
xs : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'strip'.
|
||||
etch_type : str, optional
|
||||
Value for the etch_type parameter. Default is 'FETCH'.
|
||||
etch_shape : str, optional
|
||||
Value for the etch_shape parameter. Default is 'rectangle'.
|
||||
N : int, optional
|
||||
Value for the N parameter. Default is 200.
|
||||
eta_etch : float, optional
|
||||
Value for the eta_etch parameter. Default is 0.5.
|
||||
dT : float, optional
|
||||
Value for the dT parameter. Default is 0.15.
|
||||
b : int, optional
|
||||
Value for the b parameter. Default is 10.
|
||||
eta_ds : float, optional
|
||||
Value for the eta_ds parameter. Default is 0.5.
|
||||
show_pins : bool, optional
|
||||
Whether to draw pin markers in the generated layout. Default is False.
|
||||
"""
|
||||
def __init__(self,
|
||||
Period: float = 0.3,
|
||||
w: float = 1.1,
|
||||
@@ -138,6 +168,32 @@ class Bragg_apodized:
|
||||
return C
|
||||
|
||||
class Bragg(Bragg_apodized):
|
||||
"""
|
||||
Bragg primitive component.
|
||||
|
||||
This component builds the Bragg layout cell.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
Period : float, optional
|
||||
Value for the Period parameter. Default is 0.3.
|
||||
w : float, optional
|
||||
Width parameter in microns. Default is 1.1.
|
||||
xs : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'strip'.
|
||||
etch_type : str, optional
|
||||
Value for the etch_type parameter. Default is 'FETCH'.
|
||||
etch_shape : str, optional
|
||||
Value for the etch_shape parameter. Default is 'rectangle'.
|
||||
N : int, optional
|
||||
Value for the N parameter. Default is 200.
|
||||
eta_etch : float, optional
|
||||
Value for the eta_etch parameter. Default is 0.5.
|
||||
dT : float, optional
|
||||
Value for the dT parameter. Default is 0.15.
|
||||
show_pins : bool, optional
|
||||
Whether to draw pin markers in the generated layout. Default is False.
|
||||
"""
|
||||
def __init__(self, Period: float=0.3,
|
||||
w: float=1.1,
|
||||
xs: str='strip',
|
||||
|
||||
Reference in New Issue
Block a user