From 8cc9c9eed6b4533a4e6b568b9d7b91654ac0e8e1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 10 Jun 2014 15:16:45 +0200 Subject: [PATCH] units: remove duplicate method --- artiq/language/units.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/artiq/language/units.py b/artiq/language/units.py index b7b236a58..54368e9fd 100644 --- a/artiq/language/units.py +++ b/artiq/language/units.py @@ -21,12 +21,6 @@ class Quantity: r_prefix += 1 return str(r_amount) + " " + _prefixes_str[r_prefix] + self.unit.name - def __add__(self, other): - if self.unit != other.unit: - raise DimensionError - return Quantity(self.amount + other.amount, self.unit) - __radd__ = __add__ - def __rmul__(self, other): if isinstance(other, Quantity): return NotImplemented