Closed DancingQuanta closed 8 years ago
You are missing the parenthesis:
>>> ureg("counts / ( 0.01 cubic foot)")
<Quantity(100.0, 'count / foot ** 3')>
>>> ureg("counts per ( 0.01 cubic foot)")
<Quantity(100.0, 'count / foot ** 3')>
Silly me should have thought of that !
On 13 Sep 2016 15:20, "Hernan Grecco" notifications@github.com wrote:
You are missing the parenthesis:
ureg("counts / ( 0.01 cubic foot)")<Quantity(100.0, 'count / foot 3')>>>> ureg("counts per ( 0.01 cubic foot)")<Quantity(100.0, 'count / foot 3')>
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hgrecco/pint/issues/430#issuecomment-246696783, or mute the thread https://github.com/notifications/unsubscribe-auth/AIB3VQIczP5LY7XiSYvl9BL_ru9WUPVJks5qprEcgaJpZM4J6Vxw .
I have been trying to convert between different concentrations of particles detected by various sensors to a standard concentration for analysis. For example, a sensor (called Grimm) measures the number of particles per 100 millilitres and other sensor (called Dylos) measures the number of particles per 0.01 cubic foot.
I tried
It appears that Pint did not produce expected results where I expect 100 count / foot \ 3 and 0.01 count / millilitre. Replacing
per
with/
produces same results.My application require I enter the concentration like this as I store the concentration units in a YAML file.