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

Unit not recognized - parsing issue? #92

Open
SophieLM opened this issue Mar 29, 2018 · 1 comment
Open

Unit not recognized - parsing issue? #92

SophieLM opened this issue Mar 29, 2018 · 1 comment

Comments

@SophieLM
Copy link

Hi,

I need to create two combined units: '% / g/m²' and '°C / g/m²'.

When I used Qty('% / g / m2') or Qty('% / g m-2') or Qty('% m2/g'), I have the error "Unit not recognized".
However, when I used Qty('m2/g %'), it is ok.

When I used Qty('degC / g / m2') or Qty('degC / g m-2'), I have the error "Unit not recognized".
However, when I used Qty('m2/g degC') or Qty('degC m2/g'), it is ok.

Could be a parsing issue? Did I miss something on documentation?

Thanks in advance for you feedback.
Sophie

@gentooboontoo
Copy link
Owner

You just came across a parsing bug with %. I will try to fix it shortly. It's far from ideal but you could replace % with percent if it is acceptable for your use case.

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

2 participants