1. biolab
  2. Untitled project
  3. orange-bioinformatics

Commits

Aleš Erjavec  committed e11c55e

Fixed input data handling.

  • Participants
  • Parent commits 1241301
  • Branches default

Comments (0)

Files changed (1)

File _bioinformatics/widgets/OWSelectGenes.py

View file
  • Ignore whitespace
             attrs = gene_candidates(data)
             self.variables[:] = attrs
             self.attrsCombo.setCurrentIndex(0)
-            self.geneIndex = 0
+            if attrs:
+                self.geneIndex = 0
+            else:
+                self.geneIndex = -1
+                self.warning(0, "No suitable columns for gene names.")
+
             self.selection = []
         else:
             self.variables[:] = []
             self.geneIndex = -1
-            self.warning(0, "No suitable columns for gene names.")
 
         self._changedFlag = True
         self._updateCompletionModel()