ubcpdk.cells.pack_doe_grid#
- ubcpdk.cells.pack_doe_grid(doe=None, settings=None, do_permutations=False, function=None, with_text=False, **kwargs)[source]#
Packs a component DOE (Design of Experiment) using grid.
- Parameters:
doe (ComponentSpec | None) – function to return Components.
settings (Mapping[str, Sequence[kf.typings.MetaData]] | None) – component settings.
do_permutations (bool) – for each setting.
function (CellSpec | None) – to apply to component (add padding, grating couplers).
with_text (bool) – includes text label.
kwargs (Any) – for grid.
Args (Keyword)
spacing – between adjacent elements on the grid, can be a tuple for
width. (different distances in height and)
separation – If True, guarantees elements are separated with fixed spacing
False (if)
grid. (elements are spaced evenly along a)
shape – x, y shape of the grid (see np.reshape).
1D (If no shape and the list is)
with (if np.reshape were run)
align_x – {‘x’, ‘xmin’, ‘xmax’} for x (column) alignment along.
align_y – {‘y’, ‘ymin’, ‘ymax’} for y (row) alignment along.
edge_x – {‘x’, ‘xmin’, ‘xmax’} for x (column) (ignored if separation = True).
edge_y – {‘y’, ‘ymin’, ‘ymax’} for y (row) (ignored if separation = True).
rotation – for each component in degrees.
h_mirror – horizontal mirror y axis (x, 1) (1, 0). most common mirror.
v_mirror – vertical mirror using x axis (1, y) (0, y).
- Return type:
Component