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
{{ message }}
Repository navigation
Last item.data() of pya.LayoutQuery returns None #261
In a query like below, the last item.data() unduly returns None. In particular, if there is only one cell instance matching the query, the result is result = [None], which is disappointing.
query = "select cell.name from instances of .. where cell_name ~ 'CellName1'"
result = [item.data() for item in pya.LayoutQuery(query).each(layout)]
thanks for this issue report. I can reproduce it, but that does not seem to be a systematic issue. With "search and replace" the result is fine. I'll check the Python integration code.
Activity
klayoutmatthias commentedon Apr 16, 2019
Hi Olivier,
thanks for this issue report. I can reproduce it, but that does not seem to be a systematic issue. With "search and replace" the result is fine. I'll check the Python integration code.
Regards,
Matthias
Fixed #261 (iterator must not be incremented while value is used)
klayoutmatthias commentedon Apr 16, 2019
I guess I found the root cause. I'll give it some testing and then merge it.
Merge pull request #262 from KLayout/issue-261
Fixed #261 (iterator must not be incremented while value is used)