Commits

Marko Toplak committed d89d686

obiDicty: fix sorting group elements in join_replicates

  • Participants
  • Parent commits 6f8cdb6

Comments (0)

Files changed (1)

     types = {}
     for k,vals in all_values.iteritems():
         types[k] = data_type(vals)
-  
+
     for group, elements in d.items():
         a = orange.FloatVariable()
         #here sort elements
     
         def sk(x):
-            return ( types[n](x[n]) for n in ignorenames if n in all_values )
+            return [ types[n](x[n]) for n in ignorenames if n in all_values ]
 
         elements = sorted(elements, key=lambda x: sk(data.domain.attributes[x].attributes))