-
Notifications
You must be signed in to change notification settings - Fork 212
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
832 box plus buffer vs chips for Multiplanar design. #833
Conversation
…hip size, along with some error checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
box_minx, box_miny, box_maxx, box_maxy = box_for_xy_bounds | ||
safe_xy_box = list() | ||
# Keep the order of appends in this way. It should match (minx, miny, maxx, maxy) | ||
if box_minx < chip_minx: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A perhaps cleaner shorthand;
safe_xy_box = [chip_bounds_xy[n] if np.absolute(box_for_xy_bounds[n])>np.absolute(chip_bounds_xy[n]) else box_for_xy_bounds[n] for n in range(len(box_for_xy_bounds))]
Tested it but probably should double check it gives the desired output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting more logic into a single list comprehension becomes harder to debug and maintain code. I request, to go ahead with the pull request as it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can change the format of code to make more compact and readable.
close #832 |
What are the issues this pull addresses (issue numbers / links)?
Closes issue #832
Did you add tests to cover your changes (yes/no)?
Did you update the documentation accordingly (yes/no)?
Did you read the CONTRIBUTING document (yes/no)?
Summary
This is for Multiplanar Design with use of the layer_stack_handler.
Details and comments