Commit b9a19a0c authored by Jason Swails's avatar Jason Swails
Browse files

Fix small bug in unit related to mutable sequences.

parent e6d78cfe
...@@ -356,7 +356,7 @@ class Quantity(object): ...@@ -356,7 +356,7 @@ class Quantity(object):
if unit.is_dimensionless(): if unit.is_dimensionless():
assert unit is dimensionless # should have been set earlier in this method assert unit is dimensionless # should have been set earlier in this method
if is_quantity(result): if is_quantity(result):
result = result._value result = copy.deepcopy(result._value)
return result return result
def __mul__(self, other): def __mul__(self, other):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment