Skip to content

Commit

Permalink
v0.3.11: EBeam-dev: reload sub-libraries for both Python 2 and 3
Browse files Browse the repository at this point in the history
Former-commit-id: 906e850
  • Loading branch information
lukasc-ubc committed Mar 6, 2018
1 parent d542421 commit c58892d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion klayout_dot_config/grain.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<salt-grain>
<name>siepic_ebeam_pdk</name>
<version>0.3.10</version>
<version>0.3.11</version>
<api-version>0.25</api-version>
<title>SiEPIC EBeam PDK</title>
<doc>A Process Design Kit for Silicon Photonics fabricated using Electron Beam Lithography</doc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3399,8 +3399,17 @@ class SiEPIC_EBeam_dev(Library):
self.layout().register_pcell("Spiral_CDC_BraggGrating", spirals.CDCSpiralBraggGrating())

from photonic_crystals import photonic_crystals
from importlib import reload
reload(photonic_crystals)
# only need to reload if we are debugging, and are making changes to the code
if sys.version_info[0] == 3:
if sys.version_info[1] &lt; 4:
from imp import reload
else:
from importlib import reload
elif sys.version_info[0] == 2:
from imp import reload
photonic_crystals = reload(photonic_crystals)
spirals = reload(spirals)

# self.layout().register_pcell("SWG Fibre Coupler - litho test", swg_fc_test())
self.layout().register_pcell("SWG Fibre Grating Coupler", photonic_crystals.swg_fc())
self.layout().register_pcell("PhC H0 cavity with waveguide", photonic_crystals.H0c())
Expand Down

0 comments on commit c58892d

Please sign in to comment.