mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 11:32:39 +02:00
[updates] now handled in observable, should have from the begining :/
This commit is contained in:
parent
cd8dd9ab98
commit
b9b6ce91d8
6 changed files with 44 additions and 20 deletions
|
|
@ -156,7 +156,7 @@ class Parameterized(Parameterizable):
|
|||
p._parent_index_ += 1
|
||||
self.parameters.insert(index, param)
|
||||
|
||||
param.add_observer(self, self._pass_through_notify_observers, -1000)
|
||||
param.add_observer(self, self._pass_through_notify_observers, -np.inf)
|
||||
|
||||
parent = self
|
||||
while parent is not None:
|
||||
|
|
@ -296,7 +296,7 @@ class Parameterized(Parameterizable):
|
|||
self.param_array[name] = value
|
||||
except:
|
||||
raise ValueError, "Setting by slice or index only allowed with array-like"
|
||||
self._trigger_params_changed()
|
||||
self.trigger_update()
|
||||
else:
|
||||
try: param = self.__getitem__(name, paramlist)
|
||||
except: raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue