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

Implemented solution for issue #1836 (Allow the usage of Cell.shapes(… #1849

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

klayoutmatthias
Copy link
Collaborator

…LayerInfo(...)))

  • For Cell#shapes, LayerInfo is an accepted argument now
  • If the layer does not exist, it is created (non-const version) or an error is raised (const version)
  • Cell#clear also accepts a LayerInfo object
  • Layout#clear and Layout#delete_layer also accept a LayerInfo parameter

Rationale for supporting the clear and delete_layer methods: These cases do nothing if the layer does not exist, so there is a benefit of using them: it is not required to check first if the layer exists.

…LayerInfo(...)))

- For Cell#shapes, LayerInfo is an accepted argument now
- If the layer does not exist, it is created (non-const version)
  or an error is raised (const version)
- Cell#clear also accepts a LayerInfo object
- Layout#clear and Layout#delete_layer also accept
  a LayerInfo parameter

Rationale for supporting the clear and delete_layer methods:
These cases do nothing if the layer does not exist, so there
is a benefit of using them: it is not required to check first
if the layer exists.
@klayoutmatthias klayoutmatthias linked an issue Sep 7, 2024 that may be closed by this pull request
@klayoutmatthias klayoutmatthias merged commit 53b7c98 into master Sep 8, 2024
24 checks passed
@klayoutmatthias klayoutmatthias deleted the feature/issue-1836 branch September 8, 2024 20:24
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

Successfully merging this pull request may close these issues.

Allow the usage of Cell.shapes(LayerInfo(...))
1 participant