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

Implement literals for units #16

Open
aroberge opened this issue Apr 4, 2022 · 1 comment
Open

Implement literals for units #16

aroberge opened this issue Apr 4, 2022 · 1 comment
Assignees

Comments

@aroberge
Copy link
Owner

aroberge commented Apr 4, 2022

See if https://quantiphy.readthedocs.io/en/stable/ could be implemented as literals.

As seen in this discussion https://mail.python.org/archives/list/python-ideas@python.org/thread/JDYXM3AH3ESOL7L6ALPRZOOURL3ZLRHP/#DXCF42FJNXEBDMPJPGZCYPIYOH6UZBY3

See, in particular, this post https://mail.python.org/archives/list/python-ideas@python.org/message/4FP4RRDPODVRMALKPRZKGVEVM7YOP4GP/ and have a look at https://pypi.org/project/units/

Idea: perhaps use the [unit] notation and convert it to that of units, or use the "unit enhanced" syntax of project units.

Actually, a better choice might be https://docs.astropy.org/en/stable/units/index.html

@aroberge aroberge self-assigned this Apr 4, 2022
@aroberge
Copy link
Owner Author

aroberge commented Apr 9, 2022

This has been implemented. Unit tests and documentation need to be added.

It support units from pint and from astropy.

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

No branches or pull requests

1 participant