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

delete_cells slow in some cases #1167

Closed
klayoutmatthias opened this issue Oct 4, 2022 · 1 comment
Closed

delete_cells slow in some cases #1167

klayoutmatthias opened this issue Oct 4, 2022 · 1 comment
Assignees
Milestone

Comments

@klayoutmatthias
Copy link
Collaborator

This is related to this discussion: https://www.klayout.de/forum/discussion/2147/find-and-delete-the-empty-cells-in-the-gds#latest

It appears as if this method call:

ly.delete_cells([ c.cell_index() for c in ly.each_cell() if c.is_empty() ])

is very slow sometimes.

@klayoutmatthias
Copy link
Collaborator Author

There is a simple workaround:

  ly.start_changes()
  ly.delete_cells([ c.cell_index() for c in ly.each_cell() if c.is_empty() ])
  ly.end_changes()

However, the delete_cells method should internally disable layout updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant