-
Notifications
You must be signed in to change notification settings - Fork 387
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
VolumeFlow conversion for UkGallonsPerHour is incorrect. #1389
Comments
I've also noticed some issues while doing one of my PRs targeting v6. In my change-set I've tried to resolve them by unifying the conversions using the same constant:
Perhaps we could do the same for the Uk stuff as well? |
I like this approach a lot, keeps it consistent and accurate. Do you have a PR in for this yet? If so would you be happy to make the uk fixes at the same time? |
Well, I was going to make one.. However there are a quite a few matches when we search for |
We can do both v5 and v6 if you are up for it 👍 |
I've so far prepared the "correct" json files for Volume, VolumeFlow, StandardVolumeFlow, Mass, ForceChangeRate, AreaMomentOfInertia and Molarity. And I don't think I've even reached half of it yet.. I haven't had to change any of the unit tests so far, so given how I've used comment-links on each of the "basic conversion factors" (e.g. Pounds, Acres, Barrels etc.) it should be a pretty straightforward review.:
|
I'm fine either way, no need for any particular grouping for review purposes. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was automatically closed due to inactivity. |
Describe the bug
The defined VolumeFlow conversion value for UkGallonsPerHour is incorrect by a significant amount.
To Reproduce
N/A
Expected behavior
The conversion value is configured as 791887.667, but after a google search and some manual testing I found the conversion value should be more like 791889.294.
This is a significant difference of around 2.5 units.
Screenshots

Google suggestion:
Failing unit test:

Manual generation of the real conversion value:

Configured value in VolumeFlow.json

Additional context
I was writing unit tests to ensure the right conversions were taking place in my application.
A test for the conversion between L/s to gal (imp.)/h was failing due to the values being not quite right, even to a small degree of accuracy.
This prompted me to find the root cause of the issue which appears to be this inaccurate configured conversion value.
Funnily enough, in the original commit for this quantity the conversion number and the value used in the tests is different! Maybe I'm misunderstanding that test value though. Original commit: 4eb94e9
The text was updated successfully, but these errors were encountered: