hohlraum / gdsCAD

A simple but powerful Python package for creating photolithography masks in the GDSII format.
GNU General Public License v3.0
89 stars 52 forks source link

Some issue with color mapping is preventing show from working correctly #53

Open Rory-Lambert opened 7 years ago

Rory-Lambert commented 7 years ago

Trying to show any GDSfile, even the example provided on the website fails with the following error;

File "C:\Users\me\Anaconda2\lib\site-packages\gdsCAD\core.py", line 105, in _layer_properties colors += matplotlib.cm.gist_ncar(np.linspace(0.98, 0, 15)) TypeError: ufunc 'add' did not contain a loop with signature matching types dtype('S32') dtype('S32') dtype('S32')

Rory-Lambert commented 7 years ago

This has actually been identified previously on stackoverflow. The top voted answer sorted the issue for me. https://stackoverflow.com/questions/34264282/typeerror-ufunc-add-did-not-contain-a-loop