Changeset 1577:5922a29becb8 in orange-bioinformatics


Ignore:
Timestamp:
02/22/12 12:06:59 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Fixed some warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWKEGGPathwayBrowser.py

    r1554 r1577  
    9494         
    9595    def setMarkedObjects(self, objects, name_mapper={}): 
    96         for entry in self.pathway.entrys() if self.pathway else []: 
     96        for entry in self.pathway.entries() if self.pathway else []: 
    9797            if entry.type == "group": 
    9898                continue 
     
    220220                                addSpace=True, 
    221221                                debuggingEnabled=0) 
    222         OWGUI.button(box, self, "Update Pathways", callback=self.UpdateToLatestPathways) 
     222#        OWGUI.button(box, self, "Update Pathways", callback=self.UpdateToLatestPathways) 
    223223         
    224224#        cb.setMaximumWidth(200) 
     
    423423                num = koEntry.title[:5] if koEntry.title else None 
    424424                if num  in path_ids: 
    425                     return [koEntry] + reduce(lambda li,c:li+_walkCollect(c), [child for child in koEntry.entrys], []) 
     425                    return [koEntry] + reduce(lambda li,c:li+_walkCollect(c), [child for child in koEntry.entries], []) 
    426426                else: 
    427                     c = reduce(lambda li,c:li+_walkCollect(c), [child for child in koEntry.entrys], []) 
     427                    c = reduce(lambda li,c:li+_walkCollect(c), [child for child in koEntry.entries], []) 
    428428                    return c + (c and [koEntry] or []) 
    429429            allClasses = reduce(lambda li1, li2: li1+li2, [_walkCollect(c) for c in self.koOrthology], []) 
     
    453453                        item.pathway_id = None 
    454454                 
    455                 for child in koEntry.entrys: 
     455                for child in koEntry.entries: 
    456456                    if child in allClasses: 
    457457                        _walkCreate(child, item) 
     
    606606            kegg_gs_collections = list(obiGeneSets.collections((("KEGG", "pathways"), taxid))) 
    607607         
    608         print self.genes 
    609         print taxid 
     608#        print self.genes 
     609#        print taxid 
    610610#        print kegg_gs_collections 
    611611        if USE_THREADING: 
Note: See TracChangeset for help on using the changeset viewer.