viff

changeset 1455:682f4b1d5f91

BeDOZa: The alpha parameter should be the same when adding two KeyLists.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Tue, 06 Jul 2010 10:55:48 +0200
parents 5a762613a0fb
children f7f9647ae5b7
files viff/bedoza.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/viff/bedoza.py	Tue Jul 06 10:52:50 2010 +0200
     1.2 +++ b/viff/bedoza.py	Tue Jul 06 10:55:48 2010 +0200
     1.3 @@ -59,6 +59,7 @@
     1.4  
     1.5      def __add__(self, other):
     1.6          """Addition."""
     1.7 +        assert self.alpha == other.alpha
     1.8          keys = []
     1.9          for k1, k2 in zip(self.keys, other.keys):
    1.10              keys.append(k1 + k2)