pKaTool/pKa_system_micro.py
def copy_group_micro(self,event=None):
        """Get the population curve and send it to Ekin"""
        #
        # Get the data and reformat it
        #
        state=self.state_picked.get()
        data={}
        for pH in self.X_states.all_states.keys():
            data[pH]=self.X_states.all_states[pH][state]['pop']
        new_data={}
        new_data[0]={}
        new_data[1]={}
        count=0
        pHs=data.keys()
        pHs.sort()
        for pH in pHs:
            new_data[0][count]=pH
            new_data[1][count]=data[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,'pKaSystem population')
        #
        # Destroy the little window
        #
        self.pick_group_micro.destroy()
        return
Get the population curve and send it to Ekin
Get the population curve and send it to Ekin
Get the population curve and send it to Ekin
def copy_group_micro(self,event=None):
         Get the data and reformat it
        state=self.state_picked.get()
        data={}
        for pH in self.X_states.all_states.keys():
            data[pH]=self.X_states.all_states[pH][state]['pop']
        new_data={}
        new_data[0]={}
        new_data[1]={}
        count=0
        pHs=data.keys()
        pHs.sort()
        for pH in pHs:
            new_data[0][count]=pH
            new_data[1][count]=data[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,'pKaSystem population')
         Destroy the little window
        self.pick_group_micro.destroy()
        return
def copy_group_micro ( self , event = None ) : state = self . state_picked . get ( ) data = { } for pH in self . X_states . all_states . keys ( ) : data [ pH ] = self . X_states . all_states [ pH ] [ state ] [ 'pop' ] new_data = { } new_data [ 0 ] = { } new_data [ 1 ] = { } count = 0 pHs = data . keys ( ) pHs . sort ( ) for pH in pHs : new_data [ 0 ] [ count ] = pH new_data [ 1 ] [ count ] = data [ pH ] count = count + 1 import os , sys import EAT_DB . Ekin EK = EAT_DB . Ekin . Ekin ( parent = self ) EK . pass_data ( new_data , 'pKaSystem population' ) self . pick_group_micro . destroy ( ) return
Get the population curve and send it to Ekin
Get the population curve and send it to Ekin
"""Get the population curve and send it to Ekin""" # # Get the data and reformat it # # # Open Ekin, and load the data # # # Destroy the little window #
self
event