Skip to content

move_all_by fails when the layout contains pins, via_infos, ... #167

@gnawhleinad

Description

@gnawhleinad

move_all_by (shown below 👇)

BPG/BPG/photonic_core.py

Lines 559 to 564 in 8018c0d

for obj in chain(self._inst_list, self._inst_primitives, self._rect_list,
self._via_primitives, self._via_list, self._pin_list,
self._path_list, self._blockage_list, self._boundary_list,
self._polygon_list, self._round_list,
self._sim_list, self._source_list, self._monitor_list):
obj.move_by(dx=dx, dy=dy, unit_mode=unit_mode)

assumes each object from the list in the chain has a move_by with dx, dy, and unit_mode parameter. Unfortunately, PhotonicPinInfo (PinInfo) doesn't use unit_mode:

    def move_by(self, dx=0, dy=0):

ref: https://github.com/BerkeleyPhotonicsGenerator/BAG_framework/blob/31334948d686a8241b064995af1ea824d78a5d1c/layout/objects.py#L1917

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions