diff --git a/klayout/EBeam/WAVEGUIDES_SiN.xml b/klayout/EBeam/WAVEGUIDES_SiN.xml
index 1a2ebf04..7e4431a7 100755
--- a/klayout/EBeam/WAVEGUIDES_SiN.xml
+++ b/klayout/EBeam/WAVEGUIDES_SiN.xml
@@ -129,7 +129,8 @@
None
None
true
- 110
+ 0.3
+ 50.0
0.75
SiN
diff --git a/klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py b/klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py
index 600ac943..df6bc6c9 100644
--- a/klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py
+++ b/klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py
@@ -290,8 +290,8 @@ def produce_impl(self):
# spiral points
points = [
DPoint(-length0, offset),
- DPoint(0.0, offset),
- DPoint(0.0, -offset),
+ DPoint(-length0+radius*2, offset),
+ DPoint(-length0+radius*2, -offset),
DPoint(length0, -offset),
]
for i in range(1, self.loops * 2, 2):
@@ -447,6 +447,11 @@ def __init__(self):
from SiEPIC.utils.layout import new_layout
from SiEPIC.scripts import zoom_out
+ from SiEPIC._globals import Python_Env
+ if Python_Env == 'Script':
+ # For external Python mode, when installed using pip install siepic_ebeam_pdk
+ import siepic_ebeam_pdk
+
# load the test library, and technology
t = test_lib()
tech = t.technology
@@ -505,3 +510,12 @@ def __init__(self):
xmax = max(xmax, x + inst.bbox().width())
zoom_out(topcell)
+
+
+ # Display the layout in KLayout, using KLayout Package "klive", which needs to be installed in the KLayout Application
+ if Python_Env == 'Script':
+ from SiEPIC.scripts import export_layout
+ path = os.path.dirname(os.path.realpath(__file__))
+ file_out = export_layout (topcell, path, filename='spiral_paperclip', relative_path='', format='oas')
+ from SiEPIC.utils import klive
+ klive.show(file_out, technology=tech)