text stringlengths 10 968k | id stringlengths 14 122 | metadata dict | __index_level_0__ int64 0 242 |
|---|---|---|---|
is_3d: false
fiber_angle_deg: -31
fiber_xoffset: 0
compute_time_seconds: 58.89392685890198
compute_time_minutes: 0.9815654476483663
| ubc/sparameters/ebeam_gc_te1550_7e264905_d14753ca.yml/0 | {
"file_path": "ubc/sparameters/ebeam_gc_te1550_7e264905_d14753ca.yml",
"repo_id": "ubc",
"token_count": 59
} | 171 |
name: bend_euler_angle180
settings:
changed:
angle: 180
child: null
default:
add_bbox: null
add_pins: true
angle: 90.0
cross_section: xs_sc
direction: ccw
layer: null
npoints: null
p: 0.5
radius: null
width: null
with_arc_floorplan: true
full:
add_bbox: null
... | ubc/tests/test_components/test_pdk_settings_bend_euler180_.yml/0 | {
"file_path": "ubc/tests/test_components/test_pdk_settings_bend_euler180_.yml",
"repo_id": "ubc",
"token_count": 406
} | 172 |
function: ebeam_BondPad
info:
library: Design kits/ebeam
model: ebeam_BondPad
module: ubcpdk.components
name: ebeam_BondPad
settings: {}
| ubc/tests/test_components/test_pdk_settings_ebeam_BondPad_.yml/0 | {
"file_path": "ubc/tests/test_components/test_pdk_settings_ebeam_BondPad_.yml",
"repo_id": "ubc",
"token_count": 53
} | 173 |
function: ebeam_splitter_adiabatic_swg_te1550
info:
library: Design kits/ebeam
model: ebeam_splitter_adiabatic_swg_te1550
module: ubcpdk.components
name: ebeam_splitter_adiabatic_swg_te1550
settings: {}
| ubc/tests/test_components/test_pdk_settings_ebeam_splitter_adiabatic_swg_te1550_.yml/0 | {
"file_path": "ubc/tests/test_components/test_pdk_settings_ebeam_splitter_adiabatic_swg_te1550_.yml",
"repo_id": "ubc",
"token_count": 83
} | 174 |
function: gc_te1550_broadband
info:
library: Design kits/ebeam
model: ebeam_gc_te1550_broadband
polarization: te
wavelength: 1.55
module: ubcpdk.components
name: gc_te1550_broadband
settings: {}
| ubc/tests/test_components/test_pdk_settings_gc_te1550_broadband_.yml/0 | {
"file_path": "ubc/tests/test_components/test_pdk_settings_gc_te1550_broadband_.yml",
"repo_id": "ubc",
"token_count": 76
} | 175 |
connections: {}
instances:
add_fiber_array_1:
component: add_fiber_array
info: {}
settings:
bend:
function: bend_euler_sc
component:
function: add_electrical_pads_top
module: gdsfactory.routing.add_electrical_pads_top
settings:
component:
f... | ubc/tests/test_netlists/test_netlists_add_fiber_array_pads_rf_.yml/0 | {
"file_path": "ubc/tests/test_netlists/test_netlists_add_fiber_array_pads_rf_.yml",
"repo_id": "ubc",
"token_count": 2762
} | 176 |
connections: {}
instances: {}
name: ebeam_crossing4
placements: {}
ports: {}
| ubc/tests/test_netlists/test_netlists_ebeam_crossing4_.yml/0 | {
"file_path": "ubc/tests/test_netlists/test_netlists_ebeam_crossing4_.yml",
"repo_id": "ubc",
"token_count": 28
} | 177 |
connections: {}
instances:
mirror_1:
component: mirror
info:
library: Design kits/ebeam
model: ebeam_gc_te1310_8deg
settings:
component:
function: import_gds
module: ubcpdk.import_gds
settings:
gdspath: ebeam_gc_te1310_8deg.gds
p1:
- 0
... | ubc/tests/test_netlists/test_netlists_gc_te1310_8deg_.yml/0 | {
"file_path": "ubc/tests/test_netlists/test_netlists_gc_te1310_8deg_.yml",
"repo_id": "ubc",
"token_count": 263
} | 178 |
connections:
bend_euler_1,e1: straight_3,e2
bend_euler_1,e2: straight_1,e2
bend_euler_1,o1: straight_3,o2
bend_euler_1,o2: straight_1,o2
bend_euler_2,e1: straight_2,e1
bend_euler_2,e2: straight_3,e1
bend_euler_2,o1: straight_2,o1
bend_euler_2,o2: straight_3,o1
coupler_ring_1,e2: straight_1,e1
couple... | ubc/tests/test_netlists/test_netlists_ring_single_heater_.yml/0 | {
"file_path": "ubc/tests/test_netlists/test_netlists_ring_single_heater_.yml",
"repo_id": "ubc",
"token_count": 2781
} | 179 |
"""Loads a default_config from this file.
Can overwrite config with an optional `config.yml` file in the current working directory.
"""
__all__ = ["PATH", "CONFIG"]
import io
import pathlib
from omegaconf import OmegaConf
default_config = io.StringIO(
"""
username: JoaquinMatres
"""
)
cwd = pathlib.Path.cwd(... | ubc/ubcpdk/config.py/0 | {
"file_path": "ubc/ubcpdk/config.py",
"repo_id": "ubc",
"token_count": 1088
} | 180 |
import gdsfactory as gf
from ubcpdk.config import PATH
if __name__ == "__main__":
print(
gf.write_cells.get_import_gds_script(
dirpath=PATH.gds / "EBeam", module="ubpdk.components"
)
)
print(
gf.write_cells.get_import_gds_script(
dirpath="gds/EBeam_Beta", mo... | ubc/ubcpdk/import_pdk.py/0 | {
"file_path": "ubc/ubcpdk/import_pdk.py",
"repo_id": "ubc",
"token_count": 186
} | 181 |
"""MZI spectrum model.
based on https://github.com/SiEPIC-Kits/SiEPIC_Photonics_Package
"""
import numpy as np
from ubcpdk.simulation.circuits.waveguide import beta, neff, wavelength_um
def mzi_spectrum(
L1_um,
L2_um,
wavelength_um=wavelength_um,
beta=beta,
alpha=1e-3,
neff=neff,
n1=2.4... | ubc/ubcpdk/simulation/circuits/mzi_spectrum.py/0 | {
"file_path": "ubc/ubcpdk/simulation/circuits/mzi_spectrum.py",
"repo_id": "ubc",
"token_count": 439
} | 182 |
# gdsfactory VScode plugin 0.1.3
[](https://marketplace.visualstudio.com/items?itemName=gdsfactory.gdsfactory)
[](https://marketp... | vscode-gdsfactory/README.md/0 | {
"file_path": "vscode-gdsfactory/README.md",
"repo_id": "vscode-gdsfactory",
"token_count": 353
} | 183 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00004 8.70711L11.6465 12.3536L12.3536 11.6465L8.70714 8.00001L12.3536 4.35356L11.6465 3.64645L8.00004 7.2929L4.35359 3.64645L3.64648 4.35356L7.29293 8.00001L3.64648 11.6465... | vscode-gdsfactory/resources/dark/close.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/close.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 193
} | 184 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.5 2.99988L6 2.99988V12.9999H4.5V2.99988ZM11.5 2.99988V12.9999H10V2.99988L11.5 2.99988Z" fill="#75BEFF"/>
</svg>
| vscode-gdsfactory/resources/dark/debug-pause.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/debug-pause.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 114
} | 185 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 1H12.5L13 1.5V14.5L12.5 15H4.5L4 14.5V1.5L4.5 1ZM5 14H12V2H5V14ZM7.5 12H9.5V13H7.5V12Z" fill="#C5C5C5"/>
</svg>
| vscode-gdsfactory/resources/dark/device-mobile.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/device-mobile.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 147
} | 186 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 1.5L15 0H22.5L24 1.5V9L22.5 10.5H15L13.5 9V1.5ZM15 1.5V9H22.5V1.5H15ZM0 15V6L1.5 4.5H9L10.5 6V13.5H18L19.5 15V22.5L18 24H10.5H9H1.5L0 22.5V15ZM9 13.5V6H1.5V13.5H9ZM9 15H... | vscode-gdsfactory/resources/dark/extensions.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/extensions.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 242
} | 187 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99976 1H6.99976V3H1.49976L0.999756 3.5V7.5L1.49976 8H6.99976V15H7.99976V8H12.4898L12.8298 7.87L15.0098 5.87V5.13L12.8298 3.13L12.4998 3H7.99976V1ZM12.2898 7H1.99976V4H12.28... | vscode-gdsfactory/resources/dark/milestone.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/milestone.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 226
} | 188 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.77 1.01001L1 1.42001V13.42L1.78 13.84L10.78 7.84001V7.01001L1.77 1.01001ZM2 12.49V2.36001L9.6 7.43001L2 12.49Z" fill="#C5C5C5"/>
<path d="M12.15 8H12.86L15.36 10.5L14.65 11.21L13 9.56V15H12V9.55L10.35 11.2L9.6500... | vscode-gdsfactory/resources/dark/run-above.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/run-above.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 204
} | 189 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2L1 2.5V13.5L1.5 14H4V13H2V3H4V2H1.5ZM14.5 14L15 13.5L15 2.5L14.5 2H12V3L14 3L14 13H12V14H14.5Z" fill="#C5C5C5"/>
</svg>
| vscode-gdsfactory/resources/dark/symbol-array.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/symbol-array.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 150
} | 190 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 1V5H15V6H11L11 10H15V11H11V15H10V11H6V15H5L5 11H1V10H5L5 6H1V5H5L5 1H6V5H10V1H11ZM6 6L6 10H10L10 6H6Z" fill="#C5C5C5"/>
</svg>
| vscode-gdsfactory/resources/dark/symbol-numeric.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/symbol-numeric.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 153
} | 191 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.35999 7L1 13H2.34003L2.84998 11.53H5.10999L5.64001 13H7L4.65002 7H3.35999ZM3.21002 10.53L3.98999 8.39001L4.77002 10.53H3.21002Z" fill="#C5C5C5"/>
<path d="M11.82 4H10.22L7 13H8.56L9.31 10.71H12.67L13.44 13H15L11.... | vscode-gdsfactory/resources/dark/text-size.svg/0 | {
"file_path": "vscode-gdsfactory/resources/dark/text-size.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 272
} | 192 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.4318 3.3232L5.96175 13.3232L5.17104 13.2874L1.82104 8.5174L2.63939 7.94268L5.61722 12.1827L13.6687 2.67688L14.4318 3.3232Z" fill="#424242"/>
</svg>
| vscode-gdsfactory/resources/light/check.svg/0 | {
"file_path": "vscode-gdsfactory/resources/light/check.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 145
} | 193 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.50025 2H4.00024V2.24001L4.00024 14L2.50024 14L2.50025 2ZM6.00025 2.18094V14L15.0002 8.06218L6.00025 2.18094ZM12.315 8.06218L7.50048 5L7.50048 11.1809L12.315 8.06218Z" fill=... | vscode-gdsfactory/resources/light/debug-continue.svg/0 | {
"file_path": "vscode-gdsfactory/resources/light/debug-continue.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 169
} | 194 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M14.2502 4.74L11.0002 6.62V4.5L10.5002 4H1.50024L1.00024 4.5V11.5L1.50024 12H10.5002L11.0002 11.5V9.5L14.2502 11.37L15.0002 10.9V5.18L14.2502 4.74ZM10.0002 11H2.00024V5H10.0002V11ZM14.0002 10L11.0002 8.3V7.78L14.000... | vscode-gdsfactory/resources/light/device-camera-video.svg/0 | {
"file_path": "vscode-gdsfactory/resources/light/device-camera-video.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 192
} | 195 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.00024 12V11H10.0002V12H6.00024ZM4.00024 7H12.0002V8H4.00024V7ZM14.0002 3V4H2.00024V3H14.0002Z" fill="#424242"/>
</svg>
| vscode-gdsfactory/resources/light/list-filter.svg/0 | {
"file_path": "vscode-gdsfactory/resources/light/list-filter.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 116
} | 196 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0)">
<path d="M16.0002 5H0.000244141V4H16.0002V5ZM16.0002 13H0.000244141V12H16.0002V13ZM16.0002 8.99218H0.000244141V8H16.0002V8.99218Z" fill="#424242"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="1... | vscode-gdsfactory/resources/light/menu.svg/0 | {
"file_path": "vscode-gdsfactory/resources/light/menu.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 192
} | 197 |
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.0002 12.23V3.77L13.1302 3H14.0002V2H13.0002L12.6902 2.09L11.5002 2.9L10.2802 2.08L10.0002 2H9.00024V3H9.85024L11.0002 3.77V12.23L9.87024 13H9.00024V14H10.0002L10.3102 13.91L11.5002 13.1L12.7202 13.92L13.0002 14H... | vscode-gdsfactory/resources/light/rename.svg/0 | {
"file_path": "vscode-gdsfactory/resources/light/rename.svg",
"repo_id": "vscode-gdsfactory",
"token_count": 386
} | 198 |
import gdsfactory as gf
from gdsfactory.components.text import text
from gdsfactory.typings import ComponentSpec, Float2, LayerSpec
import gvtt
def box(x0, y0, w, h):
dw = w / 2.0
dh = h / 2.0
return [
[x0 + dw, y0 + dh],
[x0 + dw, y0 - dh],
[x0 - dw, y0 - dh],
[x0 - dw, y... | vtt/gvtt/components/die.py/0 | {
"file_path": "vtt/gvtt/components/die.py",
"repo_id": "vtt",
"token_count": 985
} | 199 |
name: mmi1x2_2b6ccbca
ports:
o1:
center:
- -10.0
- 0.0
layer:
- 89
- 1
name: o1
orientation: 180.0
port_type: optical
shear_angle: null
width: 1.875
o2:
center:
- 53.25
- 1.562
layer:
- 89
- 1
name: o2
orientation: 0.0
port_type: optica... | vtt/tests/test_components/test_pdk_settings_mmi1x2_.yml/0 | {
"file_path": "vtt/tests/test_components/test_pdk_settings_mmi1x2_.yml",
"repo_id": "vtt",
"token_count": 2585
} | 200 |
[bumpversion]
current_version = 0.0.2
commit = True
tag = True
[bumpversion:file:./pyproject.toml]
[bumpversion:file:./README.md]
[bumpversion:file:autosweep/__init__.py]
| autosweep/.bumpversion.cfg/0 | {
"file_path": "autosweep/.bumpversion.cfg",
"repo_id": "autosweep",
"token_count": 75
} | 0 |
from autosweep.instruments.abs_instr import (
AbsInstrument,
)
from autosweep.instruments.coms.visa_coms import VisaCOM
from autosweep.instruments.instrument_manager import (
InstrumentManager,
)
from autosweep.instruments.virt_instr import (
VirtualInstr,
)
__all__ = [
"AbsInstrument",
"Instrument... | autosweep/autosweep/instruments/__init__.py/0 | {
"file_path": "autosweep/autosweep/instruments/__init__.py",
"repo_id": "autosweep",
"token_count": 143
} | 1 |
from autosweep.tests.abs_test import (
AbsTest,
)
from autosweep.tests.virt_test import (
VirtualTest,
)
from autosweep.tests.wvl_sweep import (
WvlSweep,
)
__all__ = ["AbsTest", "VirtualTest", "WvlSweep"]
| autosweep/autosweep/tests/__init__.py/0 | {
"file_path": "autosweep/autosweep/tests/__init__.py",
"repo_id": "autosweep",
"token_count": 90
} | 2 |
```{include} ../README.md
```
| autosweep/docs/index.md/0 | {
"file_path": "autosweep/docs/index.md",
"repo_id": "autosweep",
"token_count": 15
} | 3 |
import logging
import pathlib
# this is a new test, defined in new_test.py
import new_test
import pytest
import autosweep as ap
# used to find the latest run in a collection of data runs
from autosweep.utils.generics import find_last_run
@pytest.mark.skip(reason="This is a demonstration of the TestExec functionali... | autosweep/tests/test_exec/test_run_test_exec.py/0 | {
"file_path": "autosweep/tests/test_exec/test_run_test_exec.py",
"repo_id": "autosweep",
"token_count": 732
} | 4 |
<jupyter_start><jupyter_text>Thermalgdsfactory has an FEM [femwell](https://gdsfactory.github.io/gdsfactory/notebooks/fem/01_mode_solving.html) plugin that you can use for thermal simulations.You can simulate directly the component layout and include important effects such as metal dummy fill.<jupyter_code>try:
impor... | gdsfactory-photonics-training/notebooks/22_heater_fem.ipynb/0 | {
"file_path": "gdsfactory-photonics-training/notebooks/22_heater_fem.ipynb",
"repo_id": "gdsfactory-photonics-training",
"token_count": 2454
} | 5 |
# gdsfactory test data
Stores test data for testing gdsfactory.
| gdsfactory-test-data/README.md/0 | {
"file_path": "gdsfactory-test-data/README.md",
"repo_id": "gdsfactory-test-data",
"token_count": 21
} | 6 |
compute_time_seconds: 93.55464458465576
compute_time_minutes: 1.5592440764109294
| gdsfactory-test-data/sp/bend_circular_706a361a_44de1dda.yml/0 | {
"file_path": "gdsfactory-test-data/sp/bend_circular_706a361a_44de1dda.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 33
} | 7 |
plot_modes: false
resolution: 10
compute_time_seconds: 89.44101357460022
compute_time_minutes: 1.4906835595766703
| gdsfactory-test-data/sp/bend_euler_6adeca5b_f3e429c3.yml/0 | {
"file_path": "gdsfactory-test-data/sp/bend_euler_6adeca5b_f3e429c3.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 45
} | 8 |
resolution: 20
port_symmetries:
o1:
s11:
- s22
s21:
- s12
wl_min: 1.5
wl_max: 1.6
wl_steps: 50
port_margin: 2
port_monitor_offset: -0.1
port_source_offset: -0.1
dispersive: false
padding_north: 0
padding_south: 0
padding_west: 0
padding_east: 0
layer_stack:
core:
layer:
- 1
- 0
thick... | gdsfactory-test-data/sp/bend_euler_f4d868f6_ff0e58ae.yml/0 | {
"file_path": "gdsfactory-test-data/sp/bend_euler_f4d868f6_ff0e58ae.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 1720
} | 9 |
resolution: 30
port_symmetries:
o1@0,o1@0:
- o2@0,o2@0
o2@0,o1@0:
- o1@0,o2@0
wavelength_start: 1.5
wavelength_stop: 1.6
wavelength_points: 50
port_margin: 2
port_monitor_offset: -0.1
port_source_offset: -0.1
dispersive: false
ymargin_top: 0.0
ymargin_bot: 3.0
xmargin_left: 0
xmargin_right: 3.0
is_3d: false
lay... | gdsfactory-test-data/sp/bend_euler_radius3_55cb702c.yml/0 | {
"file_path": "gdsfactory-test-data/sp/bend_euler_radius3_55cb702c.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 3793
} | 10 |
resolution: 30
port_symmetries: {}
wl_min: 1.5
wl_max: 1.6
wl_steps: 50
port_margin: 2
port_monitor_offset: -0.1
port_source_offset: -0.1
dispersive: false
ymargin_top: 3.0
ymargin_bot: 3.0
xmargin_left: 0
xmargin_right: 0
layer_stack:
core:
layer:
- 1
- 0
thickness: 0.22
zmin: 0.0
material: s... | gdsfactory-test-data/sp/coupler_2e5eb039_191a5ccd.yml/0 | {
"file_path": "gdsfactory-test-data/sp/coupler_2e5eb039_191a5ccd.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 1967
} | 11 |
background_material: SiO2 (Glass) - Palik
layer2material:
- 1_0_Si (Silicon) - Palik
- 111_0_SiO2 (Glass) - Palik
- 34_0_Si3N4 (Silicon Nitride) - Phillip
layer2nm:
- '1_0_220'
mesh_accuracy: 2
port_extension_um: 1
port_height: 1.5e-06
port_width: 3.0e-06
remove_layers:
- - 111
- 0
ymargin: 2.0e-06
zmargin: 1.0e-06
| gdsfactory-test-data/sp/coupler_ring/coupler_ring_G150n_LX4_R5_W500n_S220.yml/0 | {
"file_path": "gdsfactory-test-data/sp/coupler_ring/coupler_ring_G150n_LX4_R5_W500n_S220.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 154
} | 12 |
resolution: 30
port_symmetries: {}
wl_min: 1.5
wl_max: 1.6
wl_steps: 50
port_margin: 2
port_monitor_offset: -0.1
port_source_offset: -0.1
dispersive: false
ymargin_top: 0
ymargin_bot: 2.5
xmargin_left: 2.5
xmargin_right: 2.5
layer_stack:
core:
layer:
- 1
- 0
thickness: 0.22
zmin: 0.0
material:... | gdsfactory-test-data/sp/coupler_ring_eb273bcd.yml/0 | {
"file_path": "gdsfactory-test-data/sp/coupler_ring_eb273bcd.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 1904
} | 13 |
resolution: 10
port_symmetries:
o1:
s11:
- s22
- s33
- s44
s21:
- s12
- s34
- s43
s31:
- s13
- s24
- s42
s41:
- s14
- s23
- s32
wl_min: 1.5
wl_max: 1.6
wl_steps: 50
port_margin: 2
port_monitor_offset: -0.1
port_source_offset: -0.1
dispersive: false
layer... | gdsfactory-test-data/sp/crossing_fe05e4fc.yml/0 | {
"file_path": "gdsfactory-test-data/sp/crossing_fe05e4fc.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 1540
} | 14 |
is_3d: false
fiber_angle_deg: 20
fiber_xoffset: -10
compute_time_seconds: 3.0124387741088867
compute_time_minutes: 0.05020731290181478
| gdsfactory-test-data/sp/grating_coupler_ellipti_3efea4b2_1d3226ad.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_3efea4b2_1d3226ad.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 60
} | 15 |
is_3d: false
fiber_angle_deg: 20
fiber_xoffset: 0
compute_time_seconds: 11.091753005981445
compute_time_minutes: 0.18486255009969074
| gdsfactory-test-data/sp/grating_coupler_ellipti_3efea4b2_7259398ede0853c93dde6a9aaa56dace.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_3efea4b2_7259398ede0853c93dde6a9aaa56dace.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 60
} | 16 |
compute_time_seconds: 4.671638250350952
compute_time_minutes: 0.0778606375058492
| gdsfactory-test-data/sp/grating_coupler_ellipti_3efea4b2_c3ff7345.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_3efea4b2_c3ff7345.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 34
} | 17 |
is_3d: false
fiber_angle_deg: 20
fiber_xoffset: 0
compute_time_seconds: 3.2160286903381348
compute_time_minutes: 0.05360047817230225
| gdsfactory-test-data/sp/grating_coupler_ellipti_3efea4b2_eb0d3d2c.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_3efea4b2_eb0d3d2c.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 59
} | 18 |
is_3d: false
fiber_angle_deg: 5
fiber_xoffset: -5
compute_time_seconds: 45.62704539299011
compute_time_minutes: 0.7604507565498352
| gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_1aa2deeb.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_1aa2deeb.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 58
} | 19 |
is_3d: false
fiber_angle_deg: 3
compute_time_seconds: 144.65283751487732
compute_time_minutes: 2.4108806252479553
| gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_3b3052af.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_3b3052af.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 50
} | 20 |
is_3d: false
fiber_angle_deg: 3
compute_time_seconds: 1.6741313934326172
compute_time_minutes: 0.02790218989054362
| gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_837ef9d9.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_837ef9d9.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 51
} | 21 |
is_3d: false
fiber_angle_deg: 8
fiber_xoffset: 0
compute_time_seconds: 1.2388534545898438
compute_time_minutes: 0.020647557576497395
| gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_b12d8a4b.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_b12d8a4b.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 60
} | 22 |
is_3d: false
fiber_angle_deg: -5
fiber_xoffset: -5
compute_time_seconds: 74.63534927368164
compute_time_minutes: 1.243922487894694
| gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_c3e00ce2.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_c3e00ce2.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 58
} | 23 |
is_3d: false
fiber_angle_deg: 15
compute_time_seconds: 82.57750177383423
compute_time_minutes: 1.3762916962305705
| gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_ddf04dae.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_ddf04dae.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 51
} | 24 |
is_3d: false
fiber_angle_deg: 5
fiber_xoffset: -5
compute_time_seconds: 83.57993531227112
compute_time_minutes: 1.3929989218711853
| gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_fa46ad3e.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_9d85a0c6_fa46ad3e.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 59
} | 25 |
is_3d: false
fiber_angle_deg: -15
fiber_xoffset: 5
compute_time_seconds: 102.33468270301819
compute_time_minutes: 1.705578045050303
| gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_374a7fed.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_374a7fed.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 58
} | 26 |
is_3d: false
fiber_angle_deg: -15
fiber_xoffset: 2
compute_time_seconds: 78.04716038703918
compute_time_minutes: 1.3007860064506531
| gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_57bc9b32.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_57bc9b32.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 59
} | 27 |
is_3d: false
fiber_angle_deg: 15
fiber_xoffset: 5
compute_time_seconds: 87.56468439102173
compute_time_minutes: 1.4594114065170287
| gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_a618b356.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_a618b356.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 58
} | 28 |
is_3d: false
fiber_angle_deg: -20
fiber_xoffset: 5
compute_time_seconds: 70.35233664512634
compute_time_minutes: 1.172538944085439
| gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_c042c015.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_c042c015.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 59
} | 29 |
is_3d: false
fiber_angle_deg: -5
fiber_xoffset: 2
compute_time_seconds: 73.02083110809326
compute_time_minutes: 1.2170138518015543
| gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_ec029d3e.yml/0 | {
"file_path": "gdsfactory-test-data/sp/grating_coupler_ellipti_da2e2127_ec029d3e.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 59
} | 30 |
["o1","LEFT"]
["o2","LEFT"]
["o3","LEFT"]
("o1","mode 1",1,"o1",1,"transmission")
(500, 3)
1.8737028625000000e+14 8.4802049160070270e-03 -9.0724148549953143e-01
1.8749545010187041e+14 8.3071495727035528e-03 -5.9425723254331209e-01
1.8762061395374081e+14 8.0618098662126794e-03 -2.8487433506976223e-01
1.8774577780561122e... | gdsfactory-test-data/sp/mmi1x2_24e96fd6.dat/0 | {
"file_path": "gdsfactory-test-data/sp/mmi1x2_24e96fd6.dat",
"repo_id": "gdsfactory-test-data",
"token_count": 165661
} | 31 |
resolution: 30
port_symmetries:
o1@0,o1@0:
- o2@0,o2@0
o2@0,o1@0:
- o1@0,o2@0
wavelength_start: 1.5
wavelength_stop: 1.6
wavelength_points: 50
port_margin: 2
port_monitor_offset: -0.1
port_source_offset: -0.1
dispersive: false
ymargin_top: 3
ymargin_bot: 3
xmargin_left: 0
xmargin_right: 0
is_3d: false
layer_sta... | gdsfactory-test-data/sp/mmi1x2_70053cf8_c9ed198e.yml/0 | {
"file_path": "gdsfactory-test-data/sp/mmi1x2_70053cf8_c9ed198e.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 1782
} | 32 |
["o1","LEFT"]
["o2","LEFT"]
["o3","LEFT"]
["o4","RIGHT"]
("o1","mode 1",1,"o1",1,"transmission")
(500, 3)
1.8737028625000000e+14 1.1715793576923060e-01 -3.0865477918647630e+00
1.8749545010187041e+14 1.1699456999221751e-01 -2.7510873914119518e+00
1.8762061395374081e+14 1.1683572139389745e-01 -2.4149844974045220e+00
1.87... | gdsfactory-test-data/sp/mmi2x2_b24f39a0.dat/0 | {
"file_path": "gdsfactory-test-data/sp/mmi2x2_b24f39a0.dat",
"repo_id": "gdsfactory-test-data",
"token_count": 294927
} | 33 |
compute_time_seconds: 83.06018161773682
compute_time_minutes: 1.3843363602956136
| gdsfactory-test-data/sp/straight_06d431c8_7022156e.yml/0 | {
"file_path": "gdsfactory-test-data/sp/straight_06d431c8_7022156e.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 34
} | 34 |
compute_time_seconds: 194.10413789749146
compute_time_minutes: 3.2350689649581907
| gdsfactory-test-data/sp/straight_a14d2f76_7022156e.yml/0 | {
"file_path": "gdsfactory-test-data/sp/straight_a14d2f76_7022156e.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 34
} | 35 |
is_3d: false
compute_time_seconds: 53.7403519153595
compute_time_minutes: 0.8956725319226583
| gdsfactory-test-data/sp/straight_length2_3c54bfcc5fa76b8fd050bc87b9633a08.yml/0 | {
"file_path": "gdsfactory-test-data/sp/straight_length2_3c54bfcc5fa76b8fd050bc87b9633a08.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 42
} | 36 |
component:
info: {}
name: straight_length2
settings: {}
simulation_settings:
background_material: sio2
layer_stack:
clad:
layer: !!python/tuple
- 111
- 0
material: sio2
sidewall_angle: 0.0
thickness: null
zmin: 0.0
core:
layer: !!python/tuple
- 1
... | gdsfactory-test-data/sp/straight_length2_mesh_accuracy1_si220n_wavelength_points200.yml/0 | {
"file_path": "gdsfactory-test-data/sp/straight_length2_mesh_accuracy1_si220n_wavelength_points200.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 1051
} | 37 |
compute_time_seconds: 3.517848014831543
compute_time_minutes: 0.05863080024719238
| gdsfactory-test-data/sp/straight_length3p110000_e3d7b292_c3ff7345.yml/0 | {
"file_path": "gdsfactory-test-data/sp/straight_length3p110000_e3d7b292_c3ff7345.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 35
} | 38 |
wavelength: 1.55
temperature: 25.0
num_modes: 4
cell_length: 0.5
spacing_x: 2.0
center_x: 0
resolution_x: 100
spacing_y: 2.0
center_y: 0
resolution_y: 100
layer_stack:
slab90:
layer:
- 3
- 0
thickness: 0.09
thickness_tolerance: null
zmin: 0.0
material: si
sidewall_angle: 0.0
width_... | gdsfactory-test-data/sp/taper_width22_17063247.yml/0 | {
"file_path": "gdsfactory-test-data/sp/taper_width22_17063247.yml",
"repo_id": "gdsfactory-test-data",
"token_count": 858
} | 39 |
FROM codercom/code-server:latest
# Install additional dependencies
RUN apt-get update && apt-get install -y python3-gmsh gmsh
# Install VSCode extensions
RUN code-server --install-extension gdsfactory
RUN pip install gdsfactory[kfactory,full,dev]
# Expose the port for web app
EXPOSE 8000
# Start the web app
CMD ["... | gdsfactory/.devcontainer/Dockerfile.web/0 | {
"file_path": "gdsfactory/.devcontainer/Dockerfile.web",
"repo_id": "gdsfactory",
"token_count": 137
} | 40 |
help:
@echo 'make install: Install package'
@echo 'make test: Run tests with pytest'
@echo 'make test-force: Rebuilds regression test'
install:
pip install -e .[dev,docs] pre-commit
pre-commit install
gf install-klayout-genericpdk
gf install-git-diff
dev: install
update-pre:
pre-co... | gdsfactory/Makefile/0 | {
"file_path": "gdsfactory/Makefile",
"repo_id": "gdsfactory",
"token_count": 581
} | 41 |
"""Cell decorator for functions that return a Component."""
from __future__ import annotations
import functools
import hashlib
import inspect
import warnings
from collections.abc import Callable, Sequence
from functools import partial
from typing import TypeVar, overload
from pydantic import validate_call
from gdsf... | gdsfactory/gdsfactory/cell.py/0 | {
"file_path": "gdsfactory/gdsfactory/cell.py",
"repo_id": "gdsfactory",
"token_count": 6191
} | 42 |
"""Sample AWG."""
from __future__ import annotations
from functools import partial
import numpy as np
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.typings import CrossSectionSpec
@gf.cell
def free_propagation_region(
width1: float = 2.0,
width2: float = 20.0,
leng... | gdsfactory/gdsfactory/components/awg.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/awg.py",
"repo_id": "gdsfactory",
"token_count": 2010
} | 43 |
from __future__ import annotations
import numpy as np
import gdsfactory as gf
from gdsfactory.cell import cell
from gdsfactory.component import Component
from gdsfactory.components.ge_detector_straight_si_contacts import (
ge_detector_straight_si_contacts,
)
from gdsfactory.components.mmi_90degree_hybrid import m... | gdsfactory/gdsfactory/components/coh_rx_single_pol.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/coh_rx_single_pol.py",
"repo_id": "gdsfactory",
"token_count": 4473
} | 44 |
from __future__ import annotations
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.components.bend_euler import bend_euler
from gdsfactory.components.coupler90 import coupler90
from gdsfactory.components.coupler_straight import coupler_straight
from gdsfactory.components.straight imp... | gdsfactory/gdsfactory/components/coupler_ring.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/coupler_ring.py",
"repo_id": "gdsfactory",
"token_count": 2058
} | 45 |
from __future__ import annotations
from functools import partial
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.components.bend_euler import bend_euler180
from gdsfactory.components.component_sequence import component_sequence
from gdsfactory.components.straight import straight
fro... | gdsfactory/gdsfactory/components/cutback_component.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/cutback_component.py",
"repo_id": "gdsfactory",
"token_count": 1792
} | 46 |
from __future__ import annotations
from gdsfactory.cell import cell
from gdsfactory.component import Component
from gdsfactory.port import Port
from gdsfactory.typings import ComponentSpec, Strs
@cell
def extend_ports_list(
ports: list[Port],
extension: ComponentSpec,
extension_port_name: str | None = No... | gdsfactory/gdsfactory/components/extend_ports_list.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/extend_ports_list.py",
"repo_id": "gdsfactory",
"token_count": 705
} | 47 |
from __future__ import annotations
import numpy as np
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.components.rectangle import rectangle
from gdsfactory.components.taper import taper as taper_function
from gdsfactory.typings import (
ComponentSpec,
CrossSectionSpec,
L... | gdsfactory/gdsfactory/components/grating_coupler_rectangular.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/grating_coupler_rectangular.py",
"repo_id": "gdsfactory",
"token_count": 2300
} | 48 |
from __future__ import annotations
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.components.taper import taper as taper_function
from gdsfactory.typings import ComponentFactory, CrossSectionSpec
@gf.cell
def mmi2x2(
width: float | None = None,
width_taper: float = 1.0,
... | gdsfactory/gdsfactory/components/mmi2x2.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/mmi2x2.py",
"repo_id": "gdsfactory",
"token_count": 1867
} | 49 |
from __future__ import annotations
import itertools as it
from typing import Any
import gdsfactory as gf
from gdsfactory.cell import cell
from gdsfactory.component import Component
from gdsfactory.grid import grid, grid_with_text
from gdsfactory.pack import pack
from gdsfactory.typings import CellSpec, ComponentSpec
... | gdsfactory/gdsfactory/components/pack_doe.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/pack_doe.py",
"repo_id": "gdsfactory",
"token_count": 2475
} | 50 |
from __future__ import annotations
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.components.bend_circular import bend_circular
from gdsfactory.components.ring_single_bend_coupler import coupler_ring_bend
from gdsfactory.components.straight import straight
from gdsfactory.typings im... | gdsfactory/gdsfactory/components/ring_double_bend_coupler.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/ring_double_bend_coupler.py",
"repo_id": "gdsfactory",
"token_count": 1163
} | 51 |
from __future__ import annotations
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.components.bend_s import bend_s
from gdsfactory.components.mmi1x2 import mmi1x2
from gdsfactory.typings import ComponentSpec
@gf.cell_with_child
def splitter_chain(
splitter: ComponentSpec = mmi1... | gdsfactory/gdsfactory/components/splitter_chain.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/splitter_chain.py",
"repo_id": "gdsfactory",
"token_count": 806
} | 52 |
from __future__ import annotations
import numpy as np
import gdsfactory as gf
from gdsfactory.path import transition_exponential
from gdsfactory.typings import LayerSpec
@gf.cell
def taper_parabolic(
length: float = 20,
width1: float = 0.5,
width2: float = 5.0,
exp: float = 0.5,
npoints: int = 1... | gdsfactory/gdsfactory/components/taper_parabolic.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/taper_parabolic.py",
"repo_id": "gdsfactory",
"token_count": 584
} | 53 |
from __future__ import annotations
import gdsfactory as gf
from gdsfactory.components.die import die
from gdsfactory.typings import Component, ComponentFactory
_cols_200mm_wafer = (2, 6, 6, 8, 8, 6, 6, 2)
@gf.cell
def wafer(
reticle: ComponentFactory = die,
cols: tuple[int, ...] = _cols_200mm_wafer,
xsp... | gdsfactory/gdsfactory/components/wafer.py/0 | {
"file_path": "gdsfactory/gdsfactory/components/wafer.py",
"repo_id": "gdsfactory",
"token_count": 577
} | 54 |
"""Support for font rendering in GDS files.
Adapted from PHIDL https://github.com/amccaugh/phidl/ by Adam McCaughan
"""
from __future__ import annotations
import gdstk
import numpy as np
from matplotlib import font_manager
from gdsfactory.component import Component
_cached_fonts = {}
try:
import freetype
exce... | gdsfactory/gdsfactory/font.py/0 | {
"file_path": "gdsfactory/gdsfactory/font.py",
"repo_id": "gdsfactory",
"token_count": 3931
} | 55 |
# Malformed-DRC Documentation
Explains how to use the runset.
## Folder Structure
```text
📁drc
┗ 📜README.md This file to document Klayout DRC.
┗ generic_tech_malformed.drc Main DRC rule deck for malformed LVS devices.
┗ 📜run_drc.py Run Malformed DRC runset for selected layout... | gdsfactory/gdsfactory/generic_tech/klayout/lvs/drc_malformed/README.md/0 | {
"file_path": "gdsfactory/gdsfactory/generic_tech/klayout/lvs/drc_malformed/README.md",
"repo_id": "gdsfactory",
"token_count": 997
} | 56 |
<?xml version="1.0" encoding="utf-8"?>
<klayout-macro>
<description>set_menus</description>
<version/>
<category>pymacros</category>
<prolog/>
<epilog/>
<doc/>
<autorun>true</autorun>
<autorun-early>false</autorun-early>
<shortcut/>
<show-in-menu>false</show-in-menu>
<group-name/>
<menu-path>gdsfactory.begi... | gdsfactory/gdsfactory/generic_tech/klayout/pymacros/set_menus.lym/0 | {
"file_path": "gdsfactory/gdsfactory/generic_tech/klayout/pymacros/set_menus.lym",
"repo_id": "gdsfactory",
"token_count": 303
} | 57 |
from __future__ import annotations
import pathlib
import tempfile
import uuid
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.typings import ComponentOrPath
valid_operations = ("xor", "not", "and", "or")
@gf.cell
def boolean_klayout(
gdspath1: ComponentOrPath,
gdspath2: C... | gdsfactory/gdsfactory/geometry/boolean_klayout.py/0 | {
"file_path": "gdsfactory/gdsfactory/geometry/boolean_klayout.py",
"repo_id": "gdsfactory",
"token_count": 1731
} | 58 |
"""Extract netlist from component port connectivity.
Assumes two ports are connected when they have same width, x, y
.. code:: yaml
connections:
- coupler,N0:bendLeft,W0
- coupler,N1:bendRight,N0
- bednLeft,N0:straight,W0
- bendRight,N0:straight,E0
ports:
- coupler,E0... | gdsfactory/gdsfactory/get_netlist.py/0 | {
"file_path": "gdsfactory/gdsfactory/get_netlist.py",
"repo_id": "gdsfactory",
"token_count": 10650
} | 59 |
from __future__ import annotations
from enum import Enum
from typing import Any
import yaml
from pydantic import AnyUrl, BaseModel, ConfigDict, Field, RootModel
import gdsfactory as gf
SCHEMA_VERSION = 1
class CrossSection(RootModel):
root: str = Field(
..., description="A cross section to use for wav... | gdsfactory/gdsfactory/picmodel.py/0 | {
"file_path": "gdsfactory/gdsfactory/picmodel.py",
"repo_id": "gdsfactory",
"token_count": 2335
} | 60 |
"""Functions to create routes between components."""
from __future__ import annotations
from gdsfactory.routing import sort_ports, utils
from gdsfactory.routing.add_electrical_pads_shortest import add_electrical_pads_shortest
from gdsfactory.routing.add_electrical_pads_top import add_electrical_pads_top
from gdsfacto... | gdsfactory/gdsfactory/routing/__init__.py/0 | {
"file_path": "gdsfactory/gdsfactory/routing/__init__.py",
"repo_id": "gdsfactory",
"token_count": 1530
} | 61 |
"""Routes bundles of ports (river routing)."""
from __future__ import annotations
from collections.abc import Callable
import gdsfactory as gf
from gdsfactory.components.bend_euler import bend_euler
from gdsfactory.components.straight import straight as _straight
from gdsfactory.components.taper import taper as tape... | gdsfactory/gdsfactory/routing/get_bundle_path_length_match.py/0 | {
"file_path": "gdsfactory/gdsfactory/routing/get_bundle_path_length_match.py",
"repo_id": "gdsfactory",
"token_count": 2276
} | 62 |
"""based on phidl.routing."""
from __future__ import annotations
import numpy as np
import gdsfactory as gf
from gdsfactory.component import Component
from gdsfactory.cross_section import CrossSection
from gdsfactory.path import Path, transition
from gdsfactory.port import Port
from gdsfactory.routing.route_quad imp... | gdsfactory/gdsfactory/routing/route_sharp.py/0 | {
"file_path": "gdsfactory/gdsfactory/routing/route_sharp.py",
"repo_id": "gdsfactory",
"token_count": 6044
} | 63 |
from __future__ import annotations
import gdsfactory as gf
from gdsfactory.component import Component
@gf.cell
def netlist_yaml() -> Component:
"""Test netlist yaml.
.. code::
arm_top
_____
| |
CP1= =CP2=
|_____|
arm_bot
"""
yaml = """
i... | gdsfactory/gdsfactory/samples/13_component_netlist.py/0 | {
"file_path": "gdsfactory/gdsfactory/samples/13_component_netlist.py",
"repo_id": "gdsfactory",
"token_count": 574
} | 64 |
"""LiDAR demo.
Exercise1. increase the number of elements of the phase array.
Exercise2. Make a PCell.
"""
from __future__ import annotations
import gdsfactory as gf
@gf.cell
def lidar(
noutputs=2**2, antenna_pitch=2.0, splitter_tree_spacing=(50.0, 70.0)
) -> gf.Component:
"""LiDAR demo.
Args:
... | gdsfactory/gdsfactory/samples/30_lidar_pcell.py/0 | {
"file_path": "gdsfactory/gdsfactory/samples/30_lidar_pcell.py",
"repo_id": "gdsfactory",
"token_count": 741
} | 65 |
instances:
{% for i in range(5) %}
wg_ra{{ i }}:
component: straight
wg_rb{{ i }}:
component: straight
{% endfor %}
{% for i in range(5) %}
wg_ma{{ i }}:
component: straight
settings:
cross_section: xs_sc
wg_mb{{ i }}:
component: straight
settings:
cross_section: xs_sc... | gdsfactory/gdsfactory/samples/all_angle_routing/all_angle_routes.pic.yml/0 | {
"file_path": "gdsfactory/gdsfactory/samples/all_angle_routing/all_angle_routes.pic.yml",
"repo_id": "gdsfactory",
"token_count": 2023
} | 66 |
"""PCell demo."""
from __future__ import annotations
import gdsfactory as gf
@gf.cell
def mzi_with_bend(radius: float = 10):
"""Returns MZI interferometer with bend."""
c = gf.Component()
mzi = c.add_ref(gf.components.mzi())
bend = c.add_ref(gf.components.bend_euler(radius=radius))
bend.connect(... | gdsfactory/gdsfactory/samples/demo/pcell.py/0 | {
"file_path": "gdsfactory/gdsfactory/samples/demo/pcell.py",
"repo_id": "gdsfactory",
"token_count": 278
} | 67 |
function: mzi
info: {}
module: gdsfactory.components.mzi
name: mzi_01020fcd
settings:
add_electrical_ports_bot: true
add_optical_ports_arms: false
bend:
function: bend_euler_nc
combiner: null
cross_section:
bbox_layers:
- - 36
- 0
bbox_offsets:
- 3.0
components_along_path: []
... | gdsfactory/gdsfactory/samples/pdk/test_fab_c/test_settings_mzi_nc_.yml/0 | {
"file_path": "gdsfactory/gdsfactory/samples/pdk/test_fab_c/test_settings_mzi_nc_.yml",
"repo_id": "gdsfactory",
"token_count": 521
} | 68 |
from __future__ import annotations
import functools
from collections.abc import Callable
import gdstk
from pydantic import validate_call
from gdsfactory.cell import _F, cell_without_validator
from gdsfactory.component import Component
from gdsfactory.typings import LayerSpecs
def symbol(func: _F, *args, **kwargs) ... | gdsfactory/gdsfactory/symbols.py/0 | {
"file_path": "gdsfactory/gdsfactory/symbols.py",
"repo_id": "gdsfactory",
"token_count": 1554
} | 69 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.