mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 20:42:39 +02:00
[init] parameter updates now check if in init
This commit is contained in:
parent
57e56bd93f
commit
f91e7e9deb
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ import numpy as np
|
||||||
import re
|
import re
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
__updated__ = '2014-10-22'
|
__updated__ = '2014-10-28'
|
||||||
|
|
||||||
class HierarchyError(Exception):
|
class HierarchyError(Exception):
|
||||||
"""
|
"""
|
||||||
|
|
@ -99,7 +99,7 @@ class Observable(object):
|
||||||
|
|
||||||
:param bool trigger_parent: Whether to trigger the parent, after self has updated
|
:param bool trigger_parent: Whether to trigger the parent, after self has updated
|
||||||
"""
|
"""
|
||||||
if not self.update_model() or self._in_init_:
|
if not self.update_model() or (hasattr(self, "_in_init_") and self._in_init_):
|
||||||
#print "Warning: updates are off, updating the model will do nothing"
|
#print "Warning: updates are off, updating the model will do nothing"
|
||||||
return
|
return
|
||||||
self._trigger_params_changed(trigger_parent)
|
self._trigger_params_changed(trigger_parent)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue