pKaTool/pKa_system.py
def copy_group(self,event=None):
        """Get the titration curve and send it to Ekin"""
        group=None
        for id in self.ids.keys():
            if self.ids[id]==self.group_picked.get():
                group=id
                break
        if not group:
            raise 'Something very odd happended in copy_group'
        #
        # Get the data and reformat it
        #
        data=self.titration_curves[group].copy()
        del data['pKa']
        new_data={}
        new_data[0]={}
        new_data[1]={}
        count=0
        pHs=self.titration_curves[group].keys()
        pHs.sort()
        for pH in pHs:
            new_data[0][count]=pH
            new_data[1][count]=self.titration_curves[group][pH]
            count=count+1
        #
        # Open Ekin, and load the data
        #
        import os,sys
        import EAT_DB.Ekin
        EK=EAT_DB.Ekin.Ekin(parent=self)
        EK.pass_data(new_data)
        #
        # Destroy the little window
        #
        self.pick_group.destroy()
        return
Get the titration curve and send it to Ekin
Get the titration curve and send it to Ekin
Get the titration curve and send it to Ekin
def copy_group(self,event=None):
        group=None
        for id in self.ids.keys():
            if self.ids[id]==self.group_picked.get():
                group=id
                break
        if not group:
            raise 'Something very odd happended in copy_group'
         Get the data and reformat it
        data=self.titration_curves[group].copy()
        del data['pKa']
        new_data={}
        new_data[0]={}
        new_data[1]={}
        count=0
        pHs=self.titration_curves[group].keys()
        pHs.sort()
        for pH in pHs:
            new_data[0][count]=pH
            new_data[1][count]=self.titration_curves[group][pH]
            count=count+1
         Open Ekin, and load the data
        import os,sys
        import EAT_DB.Ekin
        EK=EAT_DB.Ekin.Ekin(parent=self)
        EK.pass_data(new_data)
         Destroy the little window
        self.pick_group.destroy()
        return
def copy_group ( self , event = None ) : group = None for id in self . ids . keys ( ) : if self . ids [ id ] == self . group_picked . get ( ) : group = id break if not group : raise 'Something very odd happended in copy_group' data = self . titration_curves [ group ] . copy ( ) del data [ 'pKa' ] new_data = { } new_data [ 0 ] = { } new_data [ 1 ] = { } count = 0 pHs = self . titration_curves [ group ] . keys ( ) pHs . sort ( ) for pH in pHs : new_data [ 0 ] [ count ] = pH new_data [ 1 ] [ count ] = self . titration_curves [ group ] [ pH ] count = count + 1 import os , sys import EAT_DB . Ekin EK = EAT_DB . Ekin . Ekin ( parent = self ) EK . pass_data ( new_data ) self . pick_group . destroy ( ) return
Get the titration curve and send it to Ekin
Get the titration curve and send it to Ekin
"""Get the titration curve and send it to Ekin""" # # Get the data and reformat it # # # Open Ekin, and load the data # # # Destroy the little window #
self
event