modulus of dimensioned quantities returns dimensionless quantity
Bug #452371 reported by
egradman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-quantities |
Fix Released
|
High
|
Darren Dale |
Bug Description
In [10]: pq.Quantity(
Out[10]: array(1.0) * dimensionless
I would expect the remainder to be
array(1.0) * 'm'
When you divide two quantities, the quotient should be dimensionless but the remainder is dimensioned.
Also, "10m % 3" has no physical meaning, but pq returns "1m"
(thanks so much for your quick response yesterday. I was going around the office raving about this project all day! :)
Related branches
Changed in python-quantities: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Darren Dale (dsdale24) |
milestone: | none → 0.5.3 |
Changed in python-quantities: | |
status: | Confirmed → Invalid |
tags: | added: ufuncs |
Changed in python-quantities: | |
milestone: | 0.5.3 → 0.6.0 |
status: | Confirmed → Fix Committed |
Changed in python-quantities: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I was confused about what modulus should do. Will try to fix by this weekend. Thanks for the encouraging remarks!