pKaTool/pKa_system_micro.py
def saveCCPS(self):
        """Save the CCPS curve to file"""
        act_prof,curve,ftir,act_prof2=self.get_act_prof_and_tc_and_ftir()
        import sys, os, tkFileDialog
        if not self.lastdir:
            self.lastdir=os.getcwd()
        filename=tkFileDialog.asksaveasfilename(defaultextension='.txt',
                                                initialdir=self.lastdir,
                                                filetypes=[("Text file","*.txt"),("All files","*.*")],
                                                parent=self.state_win)
        if filename:
            fd=open(filename,'w')
            pHs=act_prof.keys()
            pHs.sort()
            fd.write('pH\tActivity\n')
            for pH in pHs:
                fd.write('%7.3f\t%7.3f\n' %(pH,act_prof[pH]))
            fd.close()  
        return
Save the CCPS curve to file
Save the CCPS curve to file
Save the CCPS curve to file
def saveCCPS(self):
        act_prof,curve,ftir,act_prof2=self.get_act_prof_and_tc_and_ftir()
        import sys, os, tkFileDialog
        if not self.lastdir:
            self.lastdir=os.getcwd()
        filename=tkFileDialog.asksaveasfilename(defaultextension='.txt',
                                                initialdir=self.lastdir,
                                                filetypes=[("Text file","*.txt"),("All files","*.*")],
                                                parent=self.state_win)
        if filename:
            fd=open(filename,'w')
            pHs=act_prof.keys()
            pHs.sort()
            fd.write('pH\tActivity\n')
            for pH in pHs:
                fd.write('%7.3f\t%7.3f\n' %(pH,act_prof[pH]))
            fd.close()  
        return
def saveCCPS ( self ) : act_prof , curve , ftir , act_prof2 = self . get_act_prof_and_tc_and_ftir ( ) import sys , os , tkFileDialog if not self . lastdir : self . lastdir = os . getcwd ( ) filename = tkFileDialog . asksaveasfilename ( defaultextension = '.txt' , initialdir = self . lastdir , filetypes = [ ( "Text file" , "*.txt" ) , ( "All files" , "*.*" ) ] , parent = self . state_win ) if filename : fd = open ( filename , 'w' ) pHs = act_prof . keys ( ) pHs . sort ( ) fd . write ( 'pH\tActivity\n' ) for pH in pHs : fd . write ( '%7.3f\t%7.3f\n' % ( pH , act_prof [ pH ] ) ) fd . close ( ) return
Save the CCPS curve to file
Save the CCPS curve to file
"""Save the CCPS curve to file"""
self