diff dataset.py @ 105:8c0a1b11b007

bugfix, we keep all the line, but only a some columns
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Tue, 06 May 2008 16:34:48 -0400
parents a1740a99b81f
children 8fa1ef2411a0
line wrap: on
line diff
--- a/dataset.py	Tue May 06 16:12:37 2008 -0400
+++ b/dataset.py	Tue May 06 16:34:48 2008 -0400
@@ -977,7 +977,7 @@
 
         # else check for a fieldname
         if self.hasFields(key):
-            return self.data[self.fields_columns[key],:]
+            return self.data[:,self.fields_columns[key]]
         # else we are trying to access a property of the dataset
         assert key in self.__dict__ # else it means we are trying to access a non-existing property
         return self.__dict__[key]