From d26dd54f5bf31cb80e304214a3b9a76a09075eab Mon Sep 17 00:00:00 2001 From: tangstad Date: Sat, 22 Apr 2006 17:30:10 +0000 Subject: [PATCH] Label verifier bugged when having generated labels. --- system/dataset.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/dataset.py b/system/dataset.py index 7a4d938..71aa479 100644 --- a/system/dataset.py +++ b/system/dataset.py @@ -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):