mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-04 17:22:39 +02:00
made observers accessible and observers now only weak reference the observables
This commit is contained in:
parent
04a889b3a9
commit
11059fb615
3 changed files with 24 additions and 8 deletions
|
|
@ -197,6 +197,7 @@ class Test(ListDictTestCase):
|
|||
self.assertTrue(par.checkgrad())
|
||||
self.assertTrue(pcopy.checkgrad())
|
||||
self.assertTrue(pcopy.kern.checkgrad())
|
||||
import ipdb;ipdb.set_trace()
|
||||
self.assertIn(par.observers[0], pcopy.observers)
|
||||
self.assertEqual(par.count, 3)
|
||||
self.assertEqual(pcopy.count, 6) # 3 of each call to checkgrad
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue