Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: LineStrings must have at least 2 coordinate tuples #64

Open
nmz787 opened this issue May 30, 2020 · 0 comments
Open

ValueError: LineStrings must have at least 2 coordinate tuples #64

nmz787 opened this issue May 30, 2020 · 0 comments

Comments

@nmz787
Copy link

nmz787 commented May 30, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant