gbeflow/__init__.py
def initialize_interpolation(self,timer=True):
        '''
        Calculates interpolation of vx and vy for each timepoint
        Uses scipy.interpolate.RectBivariateSpline for optimal speed
        on meshgrid data
        
        Parameters
        ----------
        timer : boolean, optional
            Default = True, activates tqdm progress timer
            
        Attributes
        ----------
        Ldx : list
            List of dx interpolation objects for each t
        Ldy : list
            List of dy interpolation objects for each t
        interp_init : boolean
            Set to True after completion of interpolation for loop
        '''
        
        # Store interpolation object over time
        self.Ldx = []
        self.Ldy = []
        
        # Record interpolation initializationa as false
        self.interp_init = False
        
        # Set iterator with or without tqdm
        # Includes zeroth timepoint where all vx and vy = 0
        if timer == True:
            iterator = tqdm.tqdm(self.tval)
        else:
            iterator = self.tval

        for t in iterator:

            # Interpolate to find change in x and y
            dx = RectBivariateSpline(self.xval,self.yval,
                                     self.vx[t])
            dy = RectBivariateSpline(self.xval,self.yval,
                                     self.vy[t])
            
            # Save iterator to list
            self.Ldx.append(dx)
            self.Ldy.append(dy)
            
        # Set interpolation initialization value to True
        self.interp_init = True

        Calculates interpolation of vx and vy for each timepoint
        Uses scipy.interpolate.RectBivariateSpline for optimal speed
        on meshgrid data
        
        Parameters
        ----------
        timer : boolean, optional
            Default = True, activates tqdm progress timer
            
        Attributes
        ----------
        Ldx : list
            List of dx interpolation objects for each t
        Ldy : list
            List of dy interpolation objects for each t
        interp_init : boolean
            Set to True after completion of interpolation for loop
        
Calculates interpolation of vx and vy for each timepoint
Uses scipy.interpolate.RectBivariateSpline for optimal speed
on meshgrid data

Parameters

timer : boolean, optional
Default = True, activates tqdm progress timer

Attributes

Ldx : list
List of dx interpolation objects for each t
Ldy : list
List of dy interpolation objects for each t
interp_init : boolean
Set to True after completion of interpolation for loop
Calculates interpolation of vx and vy for each timepoint Uses scipy . interpolate . RectBivariateSpline for optimal speed on meshgrid data Parameters timer : boolean optional Default = True activates tqdm progress timer Attributes Ldx : list List of dx interpolation objects for each t Ldy : list List of dy interpolation objects for each t interp_init : boolean Set to True after completion of interpolation for loop
def initialize_interpolation(self,timer=True):
        self.Ldx = []
        self.Ldy = []
        self.interp_init = False
        if timer == True:
            iterator = tqdm.tqdm(self.tval)
        else:
            iterator = self.tval
        for t in iterator:
            dx = RectBivariateSpline(self.xval,self.yval,
                                     self.vx[t])
            dy = RectBivariateSpline(self.xval,self.yval,
                                     self.vy[t])
            self.Ldx.append(dx)
            self.Ldy.append(dy)
        self.interp_init = True
def initialize_interpolation ( self , timer = True ) : self . Ldx = [ ] self . Ldy = [ ] self . interp_init = False if timer == True : iterator = tqdm . tqdm ( self . tval ) else : iterator = self . tval for t in iterator : dx = RectBivariateSpline ( self . xval , self . yval , self . vx [ t ] ) dy = RectBivariateSpline ( self . xval , self . yval , self . vy [ t ] ) self . Ldx . append ( dx ) self . Ldy . append ( dy ) self . interp_init = True
Calculates interpolation of vx and vy for each timepoint
Uses scipy.interpolate.RectBivariateSpline for optimal speed
on meshgrid data
Calculates interpolation of vx and vy for each timepoint Uses scipy . interpolate . RectBivariateSpline for optimal speed on meshgrid data
'''
        Calculates interpolation of vx and vy for each timepoint
        Uses scipy.interpolate.RectBivariateSpline for optimal speed
        on meshgrid data
        
        Parameters
        ----------
        timer : boolean, optional
            Default = True, activates tqdm progress timer
            
        Attributes
        ----------
        Ldx : list
            List of dx interpolation objects for each t
        Ldy : list
            List of dy interpolation objects for each t
        interp_init : boolean
            Set to True after completion of interpolation for loop
        ''' # Store interpolation object over time # Record interpolation initializationa as false # Set iterator with or without tqdm # Includes zeroth timepoint where all vx and vy = 0 # Interpolate to find change in x and y # Save iterator to list # Set interpolation initialization value to True
self
timer