# HG changeset patch # User Frederic Bastien # Date 1210628633 14400 # Node ID 3518710e16ec69a343d69b8773bc0e2ff8cdf183 # Parent d7d67651d67c6ebd56031359e9f729f17be48918 don't assume we have an ArrayDataSet diff -r d7d67651d67c -r 3518710e16ec test_dataset.py --- a/test_dataset.py Mon May 12 17:40:06 2008 -0400 +++ b/test_dataset.py Mon May 12 17:43:53 2008 -0400 @@ -158,8 +158,9 @@ for x,z in m: test_minibatch_field_size(x,m.minibatch_size,len(ds),mi) test_minibatch_field_size(z,m.minibatch_size,len(ds),mi) - assert (x[:,0:3:2]==z).all() - i+=len(x) + for id in range(len(x)): + assert (x[id][::2]==z[id]).all() + i+=1 mi+=1 assert i==len(ds) assert mi==4