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

Quantity repr #1495

Open
jules-ch opened this issue Mar 30, 2022 · 1 comment · May be fixed by #1579
Open

Quantity repr #1495

jules-ch opened this issue Mar 30, 2022 · 1 comment · May be fixed by #1579

Comments

@jules-ch
Copy link
Collaborator

jules-ch commented Mar 30, 2022

We should use magnitude repr for Quantity repr as follow

<Quantity(array(2.), 'dimensionless')>
<Quantity(array(2., dtype=float32), 'dimensionless')>
<Quantity(array([2., 3., 4., ..., 2., 3., 4.]), 'dimensionless')>
<Quantity(dask.array<array, shape=(3,), dtype=float64, chunksize=(3,), chunktype=numpy.ndarray>, 'dimensionless')>
<Quantity(2.932515646146465, 'dimensionless')>
<Quantity(Decimal('2.9325156461464651456456545649'), 'dimensionless')>

using units= might be a good idea too.

Originally posted by @jules-ch in #1342 (comment)

@jules-ch
Copy link
Collaborator Author

xref #1342

@jules-ch jules-ch linked a pull request Sep 18, 2022 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants