From 3835ab041132649410dbd2db84dd545c830e08d6 Mon Sep 17 00:00:00 2001 From: gdspaul <121980307+gdspaul@users.noreply.github.com> Date: Fri, 25 Aug 2023 14:01:00 -0700 Subject: [PATCH] bugfix kcell.py: dup() no longer makes duplicate instances KCell.dup() was adding instances of the original cell twice to the duplicate, once in __init__ and once in dup() --- src/kfactory/kcell.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/kfactory/kcell.py b/src/kfactory/kcell.py index 4e8142f3..b51adcb9 100644 --- a/src/kfactory/kcell.py +++ b/src/kfactory/kcell.py @@ -1135,8 +1135,6 @@ def dup(self) -> KCell: c = KCell(kcl=self.kcl, kdb_cell=kdb_copy) c.ports = self.ports.copy() - for inst in kdb_copy.each_inst(): - c.insts.append(Instance(self.kcl, instance=inst)) c._settings = self.settings.model_copy() c.info = self.info.model_copy()