import sys
import os.path
import numpy as np
from gdsCAD import *
import matplotlib.pyplot as plt
l = core.GdsImport(os.path.abspath("my.GDS"), verbose=True)
l.show()
yields:
Traceback (most recent call last):
File "model.py", line 8, in <module>
l.show()
File "/usr/local/lib/python2.7/dist-packages/gdsCAD-0.4.5_57_gc9594b8-py2.7.egg/gdsCAD/core.py", line 91, in _show
artists=self.artist()
File "/usr/local/lib/python2.7/dist-packages/gdsCAD-0.4.5_57_gc9594b8-py2.7.egg/gdsCAD/core.py", line 1374, in artist
artists += c.artist()
File "/usr/local/lib/python2.7/dist-packages/gdsCAD-0.4.5_57_gc9594b8-py2.7.egg/gdsCAD/core.py", line 1692, in artist
art+=e.artist()
File "/usr/local/lib/python2.7/dist-packages/gdsCAD-0.4.5_57_gc9594b8-py2.7.egg/gdsCAD/core.py", line 612, in artist
lines = shapely.geometry.LineString(points)
File "/usr/local/lib/python2.7/dist-packages/shapely/geometry/linestring.py", line 48, in __init__
self._set_coords(coordinates)
File "/usr/local/lib/python2.7/dist-packages/shapely/geometry/linestring.py", line 97, in _set_coords
ret = geos_linestring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 152, in shapely.speedups._speedups.geos_linestring_from_py
ValueError: LineStrings must have at least 2 coordinate tuples
the GDS loads fine in klayout and was sent to FAB without apparent issue.
yields:
the GDS loads fine in
klayout
and was sent to FAB without apparent issue.