Label verifier bugged when having generated labels.

This commit is contained in:
Truls Alexander Tangstad 2006-04-22 17:30:10 +00:00
parent 5a2a1afe91
commit d26dd54f5b

View File

@ -39,9 +39,8 @@ class Dataset:
self._dim_num[dim_name] = axis
self._dim_names.append(dim_name)
for df,d in izip(def_list,self.dims): #check that data and labels match
df=df[1]
if len(df)!=d and df:
for (dimname, ids), d in izip(def_list,self.dims): #check that data and labels match
if len(self.ids[dimname]) != d:
raise ValueError,"dim size and identifyer mismatch"
def get_name(self):