# HG changeset patch # User Frederic Bastien # Date 1210628256 14400 # Node ID 45427d4d64b3028795889e28de8a5bbb5e7b19d3 # Parent 60e00cce3492e3d6bdbdf543ddaea20ef770780c bugfix in test diff -r 60e00cce3492 -r 45427d4d64b3 test_dataset.py --- 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)