comparison 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
comparison
equal deleted inserted replaced
104:e1a004b21daa 105:8c0a1b11b007
975 for f in fieldnames]), 975 for f in fieldnames]),
976 self.valuesVStack,self.valuesHStack) 976 self.valuesVStack,self.valuesHStack)
977 977
978 # else check for a fieldname 978 # else check for a fieldname
979 if self.hasFields(key): 979 if self.hasFields(key):
980 return self.data[self.fields_columns[key],:] 980 return self.data[:,self.fields_columns[key]]
981 # else we are trying to access a property of the dataset 981 # else we are trying to access a property of the dataset
982 assert key in self.__dict__ # else it means we are trying to access a non-existing property 982 assert key in self.__dict__ # else it means we are trying to access a non-existing property
983 return self.__dict__[key] 983 return self.__dict__[key]
984 984
985 985