incorrect conversion ratio for gills/pints

Bug #501563 reported by kcorwin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-quantities
Status tracked in Trunk
0.7
Fix Committed
Critical
Darren Dale
Trunk
Fix Committed
Critical
Darren Dale

Bug Description

>>> import quantities as pq
>>> q = 1*pq.US_liquid_cup
>>> q.units=pq.tbsp
>>> print q
8.0 tbsp

There's 16 tablespoons in one cup.

I think the problem is volume.py:

gill = US_liquid_gill = UnitQuantity(
    'US_liquid_gill',
    US_liquid_pint/2, ## <-- this should be /4
    symbol='gill',
    aliases=['gills', 'US_liquid_gills']
)

Related branches

Revision history for this message
Darren Dale (dsdale24) wrote :

Thank you for the report. This has been fixed in the trunk and the 0.7 branch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.