Skip to content

Commit

Permalink
PCMSpiral PCells moved to EBeam-dev
Browse files Browse the repository at this point in the history
Former-commit-id: fae7c75
  • Loading branch information
lukasc-ubc committed Mar 6, 2018
1 parent 0686f13 commit 610f87b
Show file tree
Hide file tree
Showing 3 changed files with 1,546 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<prolog/>
<epilog/>
<doc/>
<autorun>true</autorun>
<autorun>false</autorun>
<autorun-early>false</autorun-early>
<shortcut/>
<show-in-menu>false</show-in-menu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3392,14 +3392,26 @@ class SiEPIC_EBeam_dev(Library):
self.layout().register_pcell("Apodized Bragg Grating", ebeam_bragg_apodized())
self.layout().register_pcell("Contra-Directional Coupler", Contra_DC())

import spirals
self.layout().register_pcell("Spiral_BraggGrating", spirals.PCMSpiralBraggGrating())
self.layout().register_pcell("Spiral_BraggGrating_Slab", spirals.PCMSpiralBraggGratingSlab())
self.layout().register_pcell("Spiral_NoCenterBraggGrating", spirals.Spiral_NoCenterBraggGrating())
self.layout().register_pcell("Spiral_CDC_BraggGrating", spirals.CDCSpiralBraggGrating())

# Register us the library with the technology name
# If a library with that name already existed, it will be replaced then.
self.register(library)

if int(Application.instance().version().split('.')[1]) &gt; 24:
# KLayout v0.25 introduced technology variable:
self.technology=tech_name


# Setup path to load .py files in present folder:
import os, inspect, sys
path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
if not path in sys.path:
sys.path.append(path)

# Instantiate and register the library
SiEPIC_EBeam_dev()

Expand Down
Loading

0 comments on commit 610f87b

Please sign in to comment.