[copy] is now fully functional, only hierarchy observers will be copied and pickled

This commit is contained in:
mzwiessele 2014-05-23 11:11:21 +01:00
parent 96e1e13f7e
commit 3525e45b2f
9 changed files with 89 additions and 59 deletions

View file

@ -176,6 +176,7 @@ class Test(ListDictTestCase):
self.assertSequenceEqual(str(par), str(pcopy))
self.assertIsNot(par.param_array, pcopy.param_array)
self.assertIsNot(par.gradient_full, pcopy.gradient_full)
self.assertTrue(par.checkgrad())
self.assertTrue(pcopy.checkgrad())
self.assert_(np.any(pcopy.gradient!=0.0))
with tempfile.TemporaryFile('w+b') as f: