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

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

Open
SaurabhPandeySp opened this issue Mar 13, 2018 · 1 comment
Open

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

SaurabhPandeySp opened this issue Mar 13, 2018 · 1 comment

Comments

@SaurabhPandeySp
Copy link

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
Copy link

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

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

2 participants