diff _test_dataset.py @ 299:eded3cb54930

small bug fixed
author Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca>
date Fri, 06 Jun 2008 17:58:45 -0400
parents 5987415496df
children 0690de82c338
line wrap: on
line diff
--- a/_test_dataset.py	Fri Jun 06 17:55:14 2008 -0400
+++ b/_test_dataset.py	Fri Jun 06 17:58:45 2008 -0400
@@ -480,7 +480,7 @@
     
     def test_ApplyFunctionDataSet(self):
         ds = T_Exotic1.DataSet()
-        dsa = ApplyFunctionDataSet(ds,lambda x,y,z: ([x[-1]],[y*10],[int(z)]),['input','target','name'],minibatch_mode=False) #broken!!!!!!
+        dsa = ApplyFunctionDataSet(ds,lambda x,y,z: (x[-1],y*10,int(z)),['input','target','name'],minibatch_mode=False) #broken!!!!!!
         for k in range(len(dsa)):
             res = dsa[k]
             self.failUnless(ds[k]('input')[0][-1] == res('input')[0] , 'problem in first applied function')