Commits

Marko Toplak  committed 3a78a9c

Version bump.

hG: Enter commit message. Lines beginning with 'HG:' are removed.

  • Participants
  • Parent commits b6778ba

Comments (0)

Files changed (2)

File _bioinformatics/widgets/OWHeatMap.py

         self.BSpotVar = self.meta[0] if self.meta else None
         self.BAnnotationIndx = 0
         self.BAnnotationVar = self.meta[0] if self.meta else None
-
+        
     def get_candidate_splits(self):
         """ Return candidate labels on which we can split the data. 
         """
         self.annotationCombo.clear()
         self.splitLB.clear()
         self.meta = []
-        
         self.clear_scene()
         
     def clear_scene(self):
         
         self.selection_rects = []
         
-        
     def saveFig(self):
         sizeDlg = OWChooseImageSizeDlg(self.scene, parent=self)
         sizeDlg.exec_()
         
     def handleNewSignals(self):
         self.send('Examples', None)
+        self.error(0)
         if self.data:
-            self.update_heatmaps()
+            if self.data.domain.has_discrete_attributes(): 
+                self.error(0, "Data contains discrete attributes")
+            elif len(self.data.domain.features) == 1:
+                self.error(0, "Cannot construct heatmap with only a single feature")
+            else:
+                self.update_heatmaps()
         else:
             self.clear()
-        
+
         if self.data:
             self.openContext("Selection", self.data)
             
 NAME = 'Orange-Bioinformatics'
 DOCUMENTATION_NAME = 'Orange Bioinformatics'
 
-VERSION = '2.5a8'
+VERSION = '2.5a9'
 
 DESCRIPTION = 'Orange Bioinformatics add-on for Orange data mining software package.'
 LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()