PEATDB/Ekin/Ekin_main.py
def updateModeSpecificData(self):
        """Set specific mode data widgets when dataset changed"""
        d = self.currentdataset.get()
        meta = self.E.getMetaData(d)
        if self.E.currentmode=='Simple enzyme kinetic' or self.E.currentmode == 'Enzyme pH-activity':
            if meta.has_key('enzyme_conc'):
                self.enzyme_conc.set(meta['enzyme_conc'])
            else:
                self.enzyme_conc.set('')
            if meta.has_key('substr_conc'):
                 self.substr_conc.set(meta['substr_conc'])
            else:
                self.substr_conc.set('')
            if meta.has_key('kcat'):
                 self.kcat.set(meta['kcat'])
            else:
                self.kcat.set('')
        elif self.E.currentmode == 'NMR titration':
            #print 'nmr'
            if meta.has_key('residue'):
                self.residue_type.set(meta['residue'])
            else:
                self.residue_type.set('')
            if meta.has_key('res_num'):
                self.residue_num.set(meta['res_num'])
            else:
                self.residue_num.set('')
            if meta.has_key('atom_type'):
                self.atom_type.set(meta['atom_type'])
            else:
                self.atom_type.set('')
            if meta.has_key('chain_id'):
                self.chain_id.set(meta['chain_id'])
            else:
                self.chain_id.set('')
        return
Set specific mode data widgets when dataset changed
Set specific mode data widgets when dataset changed
Set specific mode data widgets when dataset changed
def updateModeSpecificData(self):
        d = self.currentdataset.get()
        meta = self.E.getMetaData(d)
        if self.E.currentmode=='Simple enzyme kinetic' or self.E.currentmode == 'Enzyme pH-activity':
            if meta.has_key('enzyme_conc'):
                self.enzyme_conc.set(meta['enzyme_conc'])
            else:
                self.enzyme_conc.set('')
            if meta.has_key('substr_conc'):
                 self.substr_conc.set(meta['substr_conc'])
            else:
                self.substr_conc.set('')
            if meta.has_key('kcat'):
                 self.kcat.set(meta['kcat'])
            else:
                self.kcat.set('')
        elif self.E.currentmode == 'NMR titration':
            if meta.has_key('residue'):
                self.residue_type.set(meta['residue'])
            else:
                self.residue_type.set('')
            if meta.has_key('res_num'):
                self.residue_num.set(meta['res_num'])
            else:
                self.residue_num.set('')
            if meta.has_key('atom_type'):
                self.atom_type.set(meta['atom_type'])
            else:
                self.atom_type.set('')
            if meta.has_key('chain_id'):
                self.chain_id.set(meta['chain_id'])
            else:
                self.chain_id.set('')
        return
def updateModeSpecificData ( self ) : d = self . currentdataset . get ( ) meta = self . E . getMetaData ( d ) if self . E . currentmode == 'Simple enzyme kinetic' or self . E . currentmode == 'Enzyme pH-activity' : if meta . has_key ( 'enzyme_conc' ) : self . enzyme_conc . set ( meta [ 'enzyme_conc' ] ) else : self . enzyme_conc . set ( '' ) if meta . has_key ( 'substr_conc' ) : self . substr_conc . set ( meta [ 'substr_conc' ] ) else : self . substr_conc . set ( '' ) if meta . has_key ( 'kcat' ) : self . kcat . set ( meta [ 'kcat' ] ) else : self . kcat . set ( '' ) elif self . E . currentmode == 'NMR titration' : if meta . has_key ( 'residue' ) : self . residue_type . set ( meta [ 'residue' ] ) else : self . residue_type . set ( '' ) if meta . has_key ( 'res_num' ) : self . residue_num . set ( meta [ 'res_num' ] ) else : self . residue_num . set ( '' ) if meta . has_key ( 'atom_type' ) : self . atom_type . set ( meta [ 'atom_type' ] ) else : self . atom_type . set ( '' ) if meta . has_key ( 'chain_id' ) : self . chain_id . set ( meta [ 'chain_id' ] ) else : self . chain_id . set ( '' ) return
Set specific mode data widgets when dataset changed
Set specific mode data widgets when dataset changed
"""Set specific mode data widgets when dataset changed""" #print 'nmr'
self