Skip to content

VolumeFlow conversion for UkGallonsPerHour is incorrect.  #1389

Closed
@mswpearson

Description

@mswpearson

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:
image

Failing unit test:
image

Manual generation of the real conversion value:
image

Configured value in VolumeFlow.json
image

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions