diff dataset.py @ 227:17c5d080964b

reinstating changeset 216 clobbered accidentally by 218
author James Bergstra <bergstrj@iro.umontreal.ca>
date Tue, 27 May 2008 13:23:05 -0400
parents 517364d48ae0
children 38beb81f4e8b
line wrap: on
line diff
--- a/dataset.py	Fri May 23 17:12:12 2008 -0400
+++ b/dataset.py	Tue May 27 13:23:05 2008 -0400
@@ -987,7 +987,14 @@
         for fieldname, fieldcolumns in self.fields_columns.items():
             if type(fieldcolumns) is int:
                 assert fieldcolumns>=0 and fieldcolumns<data_array.shape[1]
-                self.fields_columns[fieldname]=[fieldcolumns]
+                if 0:
+                    #I changed this because it didn't make sense to me,
+                    # and it made it more difficult to write my learner.
+                    # If it breaks stuff, let's talk about it.
+                    # - James 22/05/2008
+                    self.fields_columns[fieldname]=[fieldcolumns]
+                else:
+                    self.fields_columns[fieldname]=fieldcolumns
             elif type(fieldcolumns) is slice:
                 start,step=None,None
                 if not fieldcolumns.start: