From f06d2bcaf780a61b1b0fd6057ad3dff41c50ac93 Mon Sep 17 00:00:00 2001 From: Yannick Augenstein Date: Fri, 13 Oct 2023 16:50:52 -0700 Subject: [PATCH] Fix port placement --- gplugins/common/base_models/component.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gplugins/common/base_models/component.py b/gplugins/common/base_models/component.py index 558675c8..9633fb3a 100644 --- a/gplugins/common/base_models/component.py +++ b/gplugins/common/base_models/component.py @@ -82,7 +82,9 @@ def _gds_bbox(self) -> tuple[tuple[float, float], tuple[float, float]]: @cached_property def gds_ports(self) -> dict[str, gf.Port]: return { - n: p.move_polar_copy(self.extend_ports - self.port_offset, p.orientation) + n: p.move_polar_copy( + self.extend_ports + self.pad_xy_inner - self.port_offset, p.orientation + ) for n, p in self.component.ports.items() }