We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
At the moment it's possible to convert from NH3 to CO2 when in a context, this shouldn't happen.
Failing Test
def test_nh3_doesnt_convert(): with pytest.raises(DimensionalityError): with unit_registry.context("AR5GWP100"): (1 * unit_registry("Mt NH3 / yr")).to("Mt CO2 / yr")
Expected behavior
Raise an error instead.
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
conda list --export
pip freeze
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
This can probably only be solved by treating ammonia / NH3 like NOx and changing the definition from:
"NH3": ["14/17 * N", "ammonia"],
to
"NH3": "NH3", "ammonia": ["NH3"],
and maybe adding an NH3_conversions context analogous to the NOx_conversions one.
NH3_conversions
NOx_conversions
Do you think this would be a useful solution? If you want to, I could write a pull request.
Sorry, something went wrong.
Do you think this would be a useful solution?
Yep perfect! If you have a moment, a PR would be much appreciated
Merge pull request #18 from mikapfl/12-nh3-conversions
8096066
NH3 conversions (bug #12)
Successfully merging a pull request may close this issue.
Describe the bug
At the moment it's possible to convert from NH3 to CO2 when in a context, this shouldn't happen.
Failing Test
Expected behavior
Raise an error instead.
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
conda list --export
andpip freeze
as applicableAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: