Changeset 1854:e11c55eccd57 in orange-bioinformatics for _bioinformatics/widgets/OWSelectGenes.py


Ignore:
Timestamp:
10/02/13 15:57:42 (7 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed input data handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWSelectGenes.py

    r1853 r1854  
    104104            self.variables[:] = attrs 
    105105            self.attrsCombo.setCurrentIndex(0) 
    106             self.geneIndex = 0 
     106            if attrs: 
     107                self.geneIndex = 0 
     108            else: 
     109                self.geneIndex = -1 
     110                self.warning(0, "No suitable columns for gene names.") 
     111 
    107112            self.selection = [] 
    108113        else: 
    109114            self.variables[:] = [] 
    110115            self.geneIndex = -1 
    111             self.warning(0, "No suitable columns for gene names.") 
    112116 
    113117        self._changedFlag = True 
Note: See TracChangeset for help on using the changeset viewer.