Skip to content

Commit

Permalink
Fix port placement
Browse files Browse the repository at this point in the history
  • Loading branch information
yaugenst committed Oct 13, 2023
1 parent 8454cf1 commit f06d2bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gplugins/common/base_models/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit f06d2bc

Please sign in to comment.