Mercurial > pylearn
changeset 278:f708a14acdbc
removed test for dataset[fieldname] as this is not possible anymore
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Thu, 05 Jun 2008 14:40:18 -0400 |
parents | 6255359318bf |
children | 2e22cc120688 |
files | test_dataset.py |
diffstat | 1 files changed, 0 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/test_dataset.py Thu Jun 05 14:29:06 2008 -0400 +++ b/test_dataset.py Thu Jun 05 14:40:18 2008 -0400 @@ -302,37 +302,6 @@ test_ds(ds,ds2,[4,7,2,8]) del ds2 -#ds[fieldname]# an iterable over the values of the field fieldname across - #the ds (the iterable is obtained by default by calling valuesVStack - #over the values for individual examples). - if 0: - assert have_raised("ds['h']") # h is not defined... - assert have_raised("ds[['x']]") # bad syntax - assert not have_raised("var['ds']['x']",ds=ds) - isinstance(ds['x'],DataSetFields) - ds2=ds['x'] - assert len(ds['x'])==10 - assert len(ds['y'])==10 - assert len(ds['z'])==10 - i=0 - for example in ds['x']: - assert (example==array[i][:3]).all() - i+=1 - assert i==len(ds) - i=0 - for example in ds['y']: - assert (example==array[i][3]).all() - i+=1 - assert i==len(ds) - i=0 - for example in ds['z']: - assert (example==array[i,0:3:2]).all() - i+=1 - assert i==len(ds) - del ds2,i - else: - print 'warning: ds[fieldname] is deprecated... Fred could you fix this test?' - #ds.<property># returns the value of a property associated with #the name <property>. The following properties should be supported: # - 'description': a textual description or name for the ds