Automator.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:zorro 作者: C-CINA 项目源码 文件源码
def validateAuxTools(self):
        #self.comboCompressionExt.setEnabled(True)
        #self.cbDoCompression.setEnabled(True)
        self.pageGautoConfig.setEnabled(True)
        self.tbParticlePick.setEnabled(True)

        warningMessage = ""
        # Check for installation of lbzip2, pigz, and 7z
        #if not bool( zorro.util.which('lbzip2') ) and not bool( zorro.util.which('7z') ) and not bool( zorro.util.which('pigz') ):
        #    warningMessage += u"Disabling compression: None of lbzip2, pigz, or 7z found.\n"
        #    # TODO: limit compress_ext if only one is found?
        #    self.comboCompressionExt.setEnabled(False)
        #    self.cbDoCompression.setEnabled(False)

        # Check for installation of CTFFIND/GCTF
        if not bool( zorro.util.which('ctffind') ):
            # Remove CTFFIND4 from options
            warningMessage += u"Disabling CTFFIND4.1: not found.\n"
            self.comboCtfProgram.removeItem( self.comboCtfProgram.findText( 'CTFFIND4.1') )
            self.comboCtfProgram.removeItem( self.comboCtfProgram.findText( 'CTFFIND4.1, sum') )
        if not bool( zorro.util.which('gctf') ):
            warningMessage += u"Disabling GCTF: not found.\n"
            self.comboCtfProgram.removeItem( self.comboCtfProgram.findText( 'GCTF') )
            self.comboCtfProgram.removeItem( self.comboCtfProgram.findText( 'GCTF, sum') )
        # Check for installation of Gautomatch
        if not bool( zorro.util.which('gautomatch') ):
            warningMessage += u"Disabling particle picking: Gautomatch not found.\n"
            self.pageGautoConfig.setEnabled(False)
            self.tbParticlePick.setEnabled(False)
        if not bool( zorro.util.which('2dx_viewer') ):
            warningMessage += u"2dx_viewer not found, using IMS for pop-out views.\n"
            self.actionPrefer2dx_viewer.setEnabled( False )
            self.actionPreferIms.setChecked(True)


        if bool( warningMessage ):
            warnBox = QtGui.QMessageBox()
            warnBox.setText( warningMessage )
            warnBox.exec_()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号