Changeset 1338:8c596defcec7 in orange-bioinformatics


Ignore:
Timestamp:
03/01/11 10:43:27 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
e487e381026bc762db1054b8708ebd366328504f
Message:
  • changed use info check box label
  • removed info loading/download in a thread (would some times crash with a segfault)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWGeneInfo.py

    r1336 r1338  
    215215        # In the future this can be extended to multiple selections 
    216216        self.altSourceCheck = OWGUI.checkBox(self.organismBox, self, 
    217                             "useAltSource", "Use information from dictyBase", 
     217                            "useAltSource", "Show information from dictyBase", 
    218218                            callback=self.onAltSourceChange, 
    219219#                            debuggingEnabled=0, 
     
    325325        info , currorg = self.currentLoaded 
    326326        self.error(0) 
    327 #        if currorg != org: 
    328 #            self.progressBarInit() 
    329 #             
    330 #            ## Load the gene info in a worker thread 
    331 #            call = self.asyncCall(obiGene.NCBIGeneInfo, (org,), name="Loading NCBI Gene info", blocking=False) 
    332 #            call.connect(call, SIGNAL("progressChanged(float)"), self.progressBarSet, Qt.QueuedConnection) 
    333 #            with orngServerFiles.DownloadProgress.setredirect(call.emitProgressChanged): 
    334 #                call.__call__() 
    335 #                info = call.get_result() 
    336 # 
    337 ##            with orngServerFiles.DownloadProgress.setredirect(self.progressBarSet): 
    338 ##                info = obiGene.NCBIGeneInfo(self.organisms[min(self.organismIndex, len(self.organisms) - 1)]) 
    339 #            self.progressBarFinished() 
    340 #            self.currentLoaded = info, org 
    341327         
    342328        self.updateDictyExpressLink(genes, show=org == "352472") 
     
    345331        # get the info for the genes in a separate thread 
    346332        self.progressBarInit() 
    347         call = self.asyncCall(info_getter, (org, genes), 
    348                               name="Load NCBI Gene Info", 
    349                               blocking=False) 
     333#        call = self.asyncCall(info_getter, (org, genes), 
     334#                              name="Load NCBI Gene Info", 
     335#                              blocking=False) 
    350336#        call.connect(call, SIGNAL("progressChanged(float)"), self.progressBarSet, Qt.QueuedConnection) 
    351         with orngServerFiles.DownloadProgress.setredirect(call.emitProgressChanged): 
    352             call.__call__() 
    353             schema, geneinfo = call.get_result() 
     337#        with orngServerFiles.DownloadProgress.setredirect(call.emitProgressChanged): 
     338#            call.__call__() 
     339#            schema, geneinfo = call.get_result() 
    354340#        call.__call__() 
    355341#        schema, geneinfo = call.get_result() 
     342        with orngServerFiles.DownloadProgress.setredirect(self.progressBarSet): 
     343            schema, geneinfo = info_getter(org, genes) 
    356344        self.progressBarFinished() 
    357345        # schema, geneinfo = info_getter(org, genes)  
Note: See TracChangeset for help on using the changeset viewer.