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

add square pcb plated hole #105

Merged
merged 8 commits into from
Dec 28, 2024
Merged

add square pcb plated hole #105

merged 8 commits into from
Dec 28, 2024

Conversation

techmannih
Copy link
Contributor

related to tscircuit/core#429

@techmannih
Copy link
Contributor Author

@imrishabh18 please review this PR

@seveibar
Copy link
Contributor

seveibar commented Dec 23, 2024

@techmannih i think it's ambiguous if the hole is square or the plating is square, circuit json should be unambiguous so we need to clarify

I'm not sure what @imrishabh18 was thinking about here, but it seems like we need to describe "square plating with circular hole"? Is that right @imrishabh18 ?

I would recommend picking a nice name for "shape", then also adding "hole_shape" and "plating_shape" pad_shape for clarity (pad is a better word than plating here)

@seveibar
Copy link
Contributor

Square holes are uncommon, so I think rishabh was likely talking about a circular hole with square plating as shown below

image

@imrishabh18
Copy link
Member

Yeah, my fault I should have added the picture in the issue. I was talking about the square plate and circular hole

@seveibar
Copy link
Contributor

seveibar commented Dec 23, 2024

this is the first time that we have an ambiguous situation w/ the shape property, I'd recommend the shape name to be shape: "circular_hole_with_square_pad" and the clarifying hole_shape: "circle" and pad_shape: "square" to be added

it sounds like overkill but in it will be worth it when the specification is unambiguous!

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

reread my comments carefully, you didn't address them (not even close- you missed almost all of them?)

@techmannih
Copy link
Contributor Author

techmannih commented Dec 27, 2024

Oh my bad, sorry @seveibar , please review now

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

a square always has the same width/height, so it doesn't make sense to define a width and height unless we're doing a redudant definition, but we typically don't do this for rects (we usually just call it a rect and give it a width and height)

@techmannih
Copy link
Contributor Author

@seveibar done

@seveibar seveibar merged commit 845b68f into tscircuit:main Dec 28, 2024
4 checks passed
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