parent observer now static and always last

This commit is contained in:
Max Zwiessele 2014-02-27 08:07:00 +00:00
parent f1487c6935
commit 023203dc3a
3 changed files with 5 additions and 3 deletions

View file

@ -92,7 +92,6 @@ class Parameterized(Parameterizable, Pickleable, Gradcheckable):
self.constraints.update(param.constraints, start)
self.priors.update(param.priors, start)
self._parameters_.insert(index, param)
param.add_observer(self, self._notify_parameters_changed)
self.size += param.size
else:
raise RuntimeError, """Parameter exists already added and no copy made"""