-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Rename InternalPoint3D
to Point3D
, Point3D
to Point3DLike
and other point-related type aliases
#4027
Conversation
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.
Haven't taken an in-depth look at the changes, but could you also update our docs on choosing typehints?
https://manimce--4027.org.readthedocs.build/en/4027/contributing/docs/types.html
Done! Please, take a look and tell me what you think about it, @JasonGrace2282 |
To me, this indicates that we also need Also, it's a bit weird that I would like to discuss this more. If we agree on this, I could add those |
"""Wrap ``function``'s output inside a NumPy array.""" | ||
return np.asarray(function(t)) | ||
|
||
self.function = internal_parametric_function |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class Warning
FunctionGraph
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.
Thanks for making this PR!
Definitely looking forward to this change. Left a few comments, would appreciate if you could take a look when you find time.
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'm happy with this in principle, any mistakes can always be fixed in follow-ups.
PR ManimCommunity#3718 changed the behavior of `Mobject.put_start_and_end_on` when `start == end`, however the assigment to `self.points` was incorrect. The existing code assigned the Point3D directly to `self.points`, that then becomes an array with shape `(3,)`, while instead it should really have shape `(1, 3)`. PR ManimCommunity#4027 added a comment that this should be fixed, but did not fix the issue. The comment is now superfluous. This commit fixes the incorrect code and associated test.
Closes #4016
Reviewer Checklist