From 29fd56340558b3710bfdfeaf060256b6b6f18239 Mon Sep 17 00:00:00 2001 From: David Janzso Date: Fri, 24 Nov 2023 09:39:10 +0200 Subject: [PATCH] Refactor produce_structures() a bit so that ground bump generation happens after it. --- klayout_package/python/kqcircuits/chips/chip.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/klayout_package/python/kqcircuits/chips/chip.py b/klayout_package/python/kqcircuits/chips/chip.py index d5f3388db..3b15dc1fb 100644 --- a/klayout_package/python/kqcircuits/chips/chip.py +++ b/klayout_package/python/kqcircuits/chips/chip.py @@ -244,7 +244,7 @@ def merge_layout_layers(self): def produce_structures(self): """Produces chip frame and possibly other structures before the ground grid. - This method is called in build(). Override this method to produce a different set of chip frames. + This method is called in post_build(). Override this method to produce a different set of chip frames. """ for i, face in enumerate(self.frames_enabled): @@ -274,9 +274,6 @@ def produce_structures(self): tsv_box = self.get_box(1).enlarged(pya.DVector(-self.edge_from_tsv, -self.edge_from_tsv)) self._produce_ground_tsvs(face_id=[3, 1], tsv_box=tsv_box) - if self.with_gnd_bumps: - self._produce_ground_bumps() - def get_box(self, face=0): """ Get the chip frame box for the specified face, correctly resolving defaults. @@ -352,6 +349,8 @@ def _produce_ground_bumps(self): def post_build(self): self.produce_structures() + if self.with_gnd_bumps: + self._produce_ground_bumps() if self.with_grid: self.produce_ground_grid() if self.merge_base_metal_gap: