hohlraum / gdsCAD

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

TypeError: 'numpy.ndarray' object is not callable #58

Open SaurabhPandeySp opened 6 years ago

SaurabhPandeySp commented 6 years ago

Hello guys, I have started using this package recently. I was trying to get the bounding_box for my layout using following lines of code

cell_info = core.GdsImport("/home/ubuntu/GDSCAD_PACKAGE/gdsCAD-0.4.5/bitcell_t1.gds") cell_points = cell_info.bounding_box()

This gives me the following error: Traceback (most recent call last): File "checkGDS.py", line 24, in cell_points = cell_info.bounding_box() TypeError: 'numpy.ndarray' object is not callable

Plz suggest how to fix this.

Martin09 commented 6 years ago

Hi, You get this error because "bounding_box" is not a function, its a property of cell_info, in this case a numpy array with the bounding box coordinates. Therefore if you remove the brackets after bounding_box, then it will work. cell_info = core.GdsImport("/home/ubuntu/GDSCAD_PACKAGE/gdsCAD-0.4.5/bitcell_t1.gds") cell_points = cell_info.bounding_box