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

Capitalization in units #40

Open
jbousquin opened this issue Sep 10, 2023 · 1 comment
Open

Capitalization in units #40

jbousquin opened this issue Sep 10, 2023 · 1 comment

Comments

@jbousquin
Copy link
Collaborator

e.g., mg/l vs mg/L is handled fine by pint, but any pre-processing that updates unit-string to fix it before pint works with it have to recognize/fix both. Planned solution is either (A) upper()/lower() and make sure it doesn't change the meaning to pint, OR (B) use upper lower to build out the dict/list (not preferable because string may be longer than char that is problematic and could require many combinations). TADA uses all caps for this and other fields.

@jbousquin
Copy link
Collaborator Author

Sometimes it doesn't matter: l & L = liter
Sometimes it does matter: m = meter, M = molar

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