Skip to content

Region "+" skips shapes with user properties on second input #1373

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

Closed
klayoutmatthias opened this issue May 14, 2023 · 0 comments · Fixed by #1374
Closed

Region "+" skips shapes with user properties on second input #1373

klayoutmatthias opened this issue May 14, 2023 · 0 comments · Fixed by #1374
Assignees
Labels
Milestone

Comments

@klayoutmatthias
Copy link
Collaborator

For details see this discussion: https://www.klayout.de/forum/discussion/2286/bug-in-klayout-0-28-7-when-doing-cell-by-cell-or-operation-on-shapes-with-user-properties#latest

The code to reproduce the problem is this

the_layout = pya.CellView.active().layout() 
the_cell = pya.CellView.active().cell

l10 = the_layout.layer(10, 0)
the_layout.clear_layer(l10)

for cell in the_layout.each_cell():
    r1 = pya.Region(cell.shapes(the_layout.layer(1, 0) ) )
    r2 = pya.Region(cell.shapes(the_layout.layer(2, 0) ) )
    cell.shapes(l10).insert(r1 + r2 )

Test data is attached.

discussion_2286.gds.zip

klayoutmatthias pushed a commit that referenced this issue May 14, 2023
@klayoutmatthias klayoutmatthias self-assigned this May 14, 2023
@klayoutmatthias klayoutmatthias added this to the 0.28.8 milestone May 14, 2023
klayoutmatthias added a commit that referenced this issue May 18, 2023
Fixed issue #1373 (shapes with user properties are skipped from secon…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant