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

Wrong Units on HAPropsSI #39

Open
aksdyall opened this issue Mar 28, 2024 · 1 comment
Open

Wrong Units on HAPropsSI #39

aksdyall opened this issue Mar 28, 2024 · 1 comment

Comments

@aksdyall
Copy link

aksdyall commented Mar 28, 2024

HAPropsSI("D", "T", 300u"K", "P", 101325u"Pa", "W", 0.01)

returns 287.12981890840064 kg m^-3 instead of 287.12981890840064 K

The number is right, but the units are wrong. I think it might have something to do with the fact that "D" is used for density in the regular PropsSI function (with units of kg m^-3), but it's used for dew point temperature in HAPropsSI (with units of K). The correct units are displayed when using "Tdp" instead:

HAPropsSI("Tdp", "T", 300u"K", "P", 101325u"Pa", "W", 0.01) returns 287.12981890840064 K

@barche
Copy link
Collaborator

barche commented Mar 31, 2024

Hi, this should be fixed in the master branch now. I'll wait a little before tagging a release in case this causes unforeseen problems.

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