KLayout Python library for integrated quantum circuit design.
GNU General Public License v3.0
128
stars
71
forks
source link
[unitaryhack] Adding a post_build method to Element to avoid calls to super().build() when constructing chips. #16
Closed
upsideon closed 2 years ago
Fixes #12 by following the instructions provided in the issue:
post_build
method has been added to theElement
class which is called inElement.produce_impl
following a call tobuild
.Chip.build
method has been renamed toChip.post_build
.super().build()
calls have been removed from chips as well as the associated documentation for implementing new chips.All tests pass locally, so chips should continue to be constructed properly following these changes.