Folder structure simplfied
This commit is contained in:
@@ -4,13 +4,31 @@ import numpy as np
|
||||
import math
|
||||
from ...routing import Route
|
||||
|
||||
from ...structures import *
|
||||
from ...geometry import *
|
||||
from ....technologies import *
|
||||
|
||||
import pandas as pd
|
||||
from ...structures import _my_polygon
|
||||
from ...geometry import _my_polygon
|
||||
|
||||
class Cross:
|
||||
"""
|
||||
Cross primitive component.
|
||||
|
||||
This component builds the Cross layout cell.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
name : Optional[str], optional
|
||||
Unique identifier for the device cell. Default is None.
|
||||
L : list, optional
|
||||
Length parameter in microns. Default is [0, 1, 2, 3, 4].
|
||||
w : list, optional
|
||||
Width parameter in microns. Default is [0.5, 0.45, 0.6, 0.4, 0.5].
|
||||
xs : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'strip'.
|
||||
show_pins : bool, optional
|
||||
Whether to draw pin markers in the generated layout. Default is False.
|
||||
"""
|
||||
def __init__(self,
|
||||
name: Optional[str] = None,
|
||||
L: list = [0 , 1, 2, 3, 4],
|
||||
@@ -97,6 +115,26 @@ class Cross:
|
||||
return C
|
||||
|
||||
class Cross_Sine(Cross):
|
||||
"""
|
||||
Cross Sine primitive component.
|
||||
|
||||
This component builds the Cross Sine layout cell.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
name : Optional[str], optional
|
||||
Unique identifier for the device cell. Default is None.
|
||||
res : list, optional
|
||||
Value for the res parameter. Default is [1, 1, 1, 1].
|
||||
w : list, optional
|
||||
Width parameter in microns. Default is [0.5, 0.45, 0.6, 0.4, 0.5].
|
||||
xs : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'strip'.
|
||||
n_points : int, optional
|
||||
Value for the n_points parameter. Default is 4.
|
||||
show_pins : bool, optional
|
||||
Whether to draw pin markers in the generated layout. Default is False.
|
||||
"""
|
||||
def __init__(self,
|
||||
name: Optional[str] = None,
|
||||
res: list = [1,1,1,1],
|
||||
|
||||
Reference in New Issue
Block a user