add kernel adding another add kernel

This commit is contained in:
Max Zwiessele 2014-03-21 10:16:49 +00:00
parent ee85229a5d
commit bf6cdf5d31
2 changed files with 2 additions and 1 deletions

View file

@ -172,7 +172,7 @@ class Add(CombinationKernel):
def add(self, other, name='sum'):
if isinstance(other, Add):
other_params = other._parameters_.copy()
other_params = other._parameters_[:]
for p in other_params:
other.remove_parameter(p)
self.add_parameters(*other_params)