-
Notifications
You must be signed in to change notification settings - Fork 11
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 copy constructor support to Vxy and Vxyz, add from_list() method … #147
add copy constructor support to Vxy and Vxyz, add from_list() method … #147
Conversation
bbean23
commented
Aug 6, 2024
- add copy constructor support to Vxy and Vxyz
- add from_list() method to Vxy and Vxyz
- add asindex() method to Vxy
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.
Please add docstring for public members. If it would take 30 minutes or less work to add unit tests, please do so.
@@ -79,6 +82,14 @@ def y(self): | |||
def _from_data(cls, data, dtype=float): | |||
return cls(data, dtype) | |||
|
|||
@classmethod | |||
def from_list(cls, vals: list["Vxy"]): |
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.
Docstring
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.
Done! Also added unit tests.
…to Vxy and Vxyz, add asindex() method to Vxy
…hods, fix Vxyz.from_list() method
2c521cc
to
412cc5a
Compare