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

Positions with incorrect type should raise a TypeError #796

Open
victorpoughon opened this issue Nov 21, 2024 · 0 comments
Open

Positions with incorrect type should raise a TypeError #796

victorpoughon opened this issue Nov 21, 2024 · 0 comments

Comments

@victorpoughon
Copy link

As of 0.7.0 this code runs without error, and the sketch is not moved but stays at 0, 0:

from build123d import *

sketch = Pos(0, "blip") * Circle(5)
sketch

We should add some type checking to raise a TypeError here. This can happens quite easily if the coordinate comes from another data type like numpy or such. It can pretty easily be wrapped into a np.array or something, then it's really confusing why no transform is applied.

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

1 participant