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

Suggestion: Add permille ratio #1963

Open
Musaefendic opened this issue Apr 7, 2024 · 2 comments
Open

Suggestion: Add permille ratio #1963

Musaefendic opened this issue Apr 7, 2024 · 2 comments

Comments

@Musaefendic
Copy link

Musaefendic commented Apr 7, 2024

Following the suggestion/issue #1277

Adding the permille unit would be interesting for applications like combustion. It's common to define the Fuel-Air-Ratio variable, with an order of magnitude around 0.01, often written as 10‰.

Is there a particular reason why this ratio hasn't been added in the pull request #1661?
Would you be open to a new pull request that includes the permille ratio and the preprocessor ?

Workaround

from pint import UnitRegistry, set_application_registry

ureg = UnitRegistry()
ureg.define("permille = 0.001")

set_application_registry(ureg)
@andrewgsavage
Copy link
Collaborator

Is there a particular reason why this ratio hasn't been added in the pull request #1661? Would you be open to a new pull request that includes the permille ratio and the preprocessor ?

It looks like it wasnt added as it permille wasn't really discussed (and keewis' post reads as if it was already defined)

I don't see any issues with adding "permille = 0.001 = ppthousand" to the registry or a ‰ preprocessor

@andrewgsavage
Copy link
Collaborator

A PR implementing this is welcomed

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