Skip to content

Add a __format__ implementation for Quantity #159

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

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

twmr
Copy link
Contributor

@twmr twmr commented Aug 17, 2019

Closes #156

This fix is a slightly adapted version of
yt-project/unyt@e57e1ec

If we want to keep support for older versions of numpy we have to add a
numpy version check. For simplicity I dropped support for older versions
of numpy. I hope that this is fine.

Edit: Added the numpy version check.

Closes python-quantities#156

This fix is a slightly adapated version of
yt-project/unyt@e57e1ec

If we want to keep support for older versions of numpy we have to add a
numpy version check. For simplicity I dropped support for older versions
of numpy. I hope that this is fine.
@twmr
Copy link
Contributor Author

twmr commented Aug 20, 2019

@apdavison This PR is ready for a review now.

Do you have an opinion on when we can remove support for older versions of numpy. I've just added a numpy version check to this PR to not break support for older versions of numpy, but it would be nice to drop support for older versions of numpy in the future.

@apdavison apdavison merged commit 12f6b71 into python-quantities:master Sep 3, 2019
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

Successfully merging this pull request may close these issues.

unit dropped from formatted string of 0d quantity array
2 participants