-
Notifications
You must be signed in to change notification settings - Fork 103
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
Access to unit list #48
Comments
Could something like what was proposed in PR #14 fit your need? getUnits("radiation") -> [["Gy","gray","grays"],["R","roentgen"], ...] Each unit would be grouped by alias. Side questions, would you display every alias or arbitrarily one of them? How will you filter out unneeded units like light years or astronomical units from |
That would be great!! Is that commit on master? I guess one way to select them is either take the SI canonical form or the full name (either m or meter, N or Netwon) I would have to check once I have the list via getUnits() and maybe select (Hopefully) alias[0]. I might not need to filter out some units, but in case I would, I would use a dictionary build after having access to the units by kind, and filter them like that. Thanks! |
Hi there, |
Add getUnits and getAliases Addresses #48
Fixed by #53 |
Hi, I'm using this awesome library for a project and although there exist a way to get the "well-known kinds" it is useless to me without having a way to obtain the unit list in that category (to put in a select widget or something), the code already has the list, it is just a matter of exposing it and maybe filtering it.
Thoughts?
The text was updated successfully, but these errors were encountered: