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

Make the FOX.MultiMolecule a subclass of np.ndarray #30

Closed
BvB93 opened this issue Apr 14, 2019 · 2 comments
Closed

Make the FOX.MultiMolecule a subclass of np.ndarray #30

BvB93 opened this issue Apr 14, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@BvB93
Copy link
Member

BvB93 commented Apr 14, 2019

Turning FOX.MultiMolecule into a proper np.ndarray subclass (1) would have the following advantages:

a. The number of magic methods specified in the FOX._MultiMolecule superclass can be greatly reduced.
b. Functions that can operate on NumPy arrays can (directly) operate on MultiMolecule objects.

@BvB93 BvB93 added the enhancement New feature or request label Apr 14, 2019
@BvB93 BvB93 self-assigned this Apr 14, 2019
@BvB93
Copy link
Member Author

BvB93 commented Apr 17, 2019

Work in progress, see the ndarray-subclassing branch.

@BvB93
Copy link
Member Author

BvB93 commented Apr 26, 2019

FOX.MultiMolecule is now a subclass of np.ndarray: #34.

@BvB93 BvB93 closed this as completed Apr 26, 2019
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

No branches or pull requests

1 participant