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

How to get the raw unit ? #231

Open
gihanpanapitiya opened this issue Nov 17, 2023 · 0 comments
Open

How to get the raw unit ? #231

gihanpanapitiya opened this issue Nov 17, 2023 · 0 comments

Comments

@gihanpanapitiya
Copy link

How do I get the raw unit? I'd like to get the M/L. Instead, with quants[0].unit.name I get metre per litre.

from quantulum3 import parser
quants = parser.parse('solubility is 2 M/L')

Also, is there a way to find the span of value and unit quantities seperately?

@gihanpanapitiya gihanpanapitiya changed the title How to get the raw unit value? How to get the raw unit ? Nov 17, 2023
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