mod of compatible but non-identical units fails

Bug #453502 reported by egradman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-quantities
Fix Released
High
Darren Dale

Bug Description

In [4]: quantities.Quantity(10.0, 'm') % quantities.Quantity(0.03, 'm')
Out[4]: array(0.01000000000000037) * m
<correct>

In [5]: quantities.Quantity(10.0, 'm') % quantities.Quantity(3.0, 'cm')
ValueError: can not add units of m and cm

Related branches

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

Thanks, will be fixed soon.

Changed in python-quantities:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Darren Dale (dsdale24)
milestone: none → 0.5.3
Darren Dale (dsdale24)
Changed in python-quantities:
milestone: 0.5.3 → 0.6.0
status: Confirmed → Fix Committed
Darren Dale (dsdale24)
Changed in python-quantities:
status: Fix Committed → Fix Released
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.