changeset 162:45427d4d64b3

bugfix in test
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Mon, 12 May 2008 17:37:36 -0400
parents 60e00cce3492
children d7d67651d67c
files test_dataset.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test_dataset.py	Mon May 12 17:25:52 2008 -0400
+++ b/test_dataset.py	Mon May 12 17:37:36 2008 -0400
@@ -127,8 +127,8 @@
         if type(ds)==ArrayDataSet:
             assert (minibatch[0][:,::2]==minibatch[1]).all()
         else:
-            for i in xrange(len(minibatch[0])):
-                (minibatch[0][i][::2]==minibatch[1][i]).all()
+            for j in xrange(len(minibatch[0])):
+                (minibatch[0][j][::2]==minibatch[1][j]).all()
         mi+=1
         i+=len(minibatch[0])
     assert i==len(ds)