Skip to content

Fix get_component_placement_vector #980

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

Merged
2 commits merged into from
Mar 22, 2022
Merged

Fix get_component_placement_vector #980

2 commits merged into from
Mar 22, 2022

Conversation

ghost
Copy link

@ghost ghost commented Mar 22, 2022

Remove the usage of the merged component's center location in
get_component_placement_vector for the offset calculation. Its return
values are expected to be passed into place_in_layout_3d_placement, and
this function applies the rotation around the origin.

This change corrects the offset calculation when the merged component
is not centered about the origin, for example when the component has
been cut out from a larger design.

Remove the usage of the merged component's center location in
get_component_placement_vector for the offset calculation.  Its return
values are expected to be passed into place_in_layout_3d_placement, and
this function applies the rotation around the origin.
Add a test case for placement of an offset component on the top layer.
@ghost ghost requested review from maxcapodi78 and svandenb-dev March 22, 2022 17:54
Copy link
Collaborator

@maxcapodi78 maxcapodi78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #980 (58e7f62) into main (fa4d455) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #980      +/-   ##
==========================================
+ Coverage   80.75%   80.78%   +0.03%     
==========================================
  Files         128      128              
  Lines       38170    38237      +67     
==========================================
+ Hits        30825    30891      +66     
- Misses       7345     7346       +1     

@ghost ghost merged commit d8e9fdf into main Mar 22, 2022
@ghost ghost deleted the fix_placement_vector branch March 22, 2022 18:50
This pull request was closed.
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

Successfully merging this pull request may close these issues.

3 participants