Skip to content

Commit

Permalink
Update _globals.py to fix qwidget error
Browse files Browse the repository at this point in the history
  • Loading branch information
jasminabrar authored Nov 23, 2023
1 parent eea3ea6 commit ce810ed
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions klayout_dot_config/python/SiEPIC/_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,35 +57,35 @@ def enum(*sequential, **named):
PIN_TYPES = enum('OPTICALIO', 'OPTICAL', 'ELECTRICAL')
PIN_LENGTH = 20 # 10 nm on each side. Previous was 2x50 nm, but shorter works well for Waveguide DRC checking

if Python_Env == "KLayout_GUI":
MODULE_NUMPY = False

MODULE_NUMPY = False
try:
import numpy
MODULE_NUMPY = True
except ImportError:
from .install import install_numpy
try:

import numpy
MODULE_NUMPY = True
except ImportError:
from .install import install_numpy
try:

import numpy
MODULE_NUMPY = True
except ImportError:
from .install import install_numpy
try:
MODULE_NUMPY = install_numpy()
except Exception as e:
print("Could not install numpy with pip. ERROR:", e)

#ACTIONS = []


KLAYOUT_VERSION = int(pya.Application.instance().version().split('.')[1])
KLAYOUT_VERSION_3 = int(pya.Application.instance().version().split('.')[2])

# Waveguide DevRec: space between the waveguide and the DevRec polygon
WG_DEVREC_SPACE = 1

# Path to Waveguide, path snapping to nearest pin. Search for pin with this distance:
PATH_SNAP_PIN_MAXDIST = 20
MODULE_NUMPY = install_numpy()
except Exception as e:
print("Could not install numpy with pip. ERROR:", e)

#ACTIONS = []


KLAYOUT_VERSION = int(pya.Application.instance().version().split('.')[1])
KLAYOUT_VERSION_3 = int(pya.Application.instance().version().split('.')[2])

# Waveguide DevRec: space between the waveguide and the DevRec polygon
WG_DEVREC_SPACE = 1

# Path to Waveguide, path snapping to nearest pin. Search for pin with this distance:
PATH_SNAP_PIN_MAXDIST = 20

INTC_ELEMENTS = ''
if Python_Env == "KLayout_GUI":
Expand Down

0 comments on commit ce810ed

Please sign in to comment.