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 copy constructor support to Vxy and Vxyz, add from_list() method … #147

Conversation

bbean23
Copy link
Collaborator

@bbean23 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

@bbean23 bbean23 added the enhancement New feature or request label Aug 6, 2024
@bbean23 bbean23 requested review from e10harvey and braden6521 August 6, 2024 04:05
@bbean23 bbean23 self-assigned this Aug 6, 2024
Copy link
Collaborator

@e10harvey e10harvey left a 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"]):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Docstring

Copy link
Collaborator Author

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.

@bbean23 bbean23 force-pushed the 146-add-new-constructors-and-as_index-methods-to-vxy-classes branch from 2c521cc to 412cc5a Compare August 7, 2024 18:53
@bbean23 bbean23 requested a review from e10harvey August 7, 2024 18:53
@bbean23 bbean23 linked an issue Aug 7, 2024 that may be closed by this pull request
@e10harvey e10harvey merged commit a6f42bc into sandialabs:develop Aug 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add new constructors and as_index methods to Vxy classes
2 participants