You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a cell has a CellArray reference, i.e. added with c.add_array(), and then it is shown with show_subports=True, it throws an error: AttributeError: 'CellArray' object has no attribute 'get_ports_list'
Expected behavior
In this case, the reference type is actually a gdspy CellArray, which doesn't have ports, so we should probably just skip the references which are not of type ComponentReference.
Suggested fix
On line 1231 of component.py, only call add_pins_triangle() if the reference is of type ComponentReference
The text was updated successfully, but these errors were encountered:
Describe the bug
When a cell has a CellArray reference, i.e. added with
c.add_array()
, and then it is shown withshow_subports=True
, it throws an error:AttributeError: 'CellArray' object has no attribute 'get_ports_list'
To Reproduce
Expected behavior
In this case, the reference type is actually a gdspy CellArray, which doesn't have ports, so we should probably just skip the references which are not of type ComponentReference.
Suggested fix
On line 1231 of component.py, only call
add_pins_triangle()
if the reference is of type ComponentReferenceThe text was updated successfully, but these errors were encountered: