Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gnawhleinad opened this issue Oct 9, 2019 · 3 comments
Open
Assignees

Comments

@gnawhleinad
Copy link
Collaborator

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

@pvnbhargava
Copy link
Collaborator

Thanks, I can add a unit_mode argument in there.

@pvnbhargava pvnbhargava self-assigned this Oct 9, 2019
@pvnbhargava
Copy link
Collaborator

Actually I think it would be best to post this issue to the main BAG repository, since this affects them as well. I've forked BAG over into this organization with the intent to embed it within BPG for easier setup, but that task will likely not happen for a while.

The fastest way to resolve your issue would be to change it in the main repo, but regardless when I finish moving BAG over, I will make this change here.

@gnawhleinad gnawhleinad pinned this issue Oct 10, 2019
@gnawhleinad gnawhleinad unpinned this issue Oct 10, 2019
@gnawhleinad gnawhleinad changed the title move_all_by fails when the layout contains pins move_all_by fails when the layout contains pins, via_infos, ... Oct 10, 2019
@gnawhleinad
Copy link
Collaborator Author

Actually I think it would be best to post this issue to the main BAG repository, since this affects them as well.

👍, created ucb-art/BAG_framework#8!

(I updated the issue title to explain that this issue could occur in more places.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants