gbeflow/__init__.py
def calc_track_set(self,starts,dt,name='',timer=True,tmin=0):
        '''
        Calculate trajectories for a set of points using a constant dt
        
        Parameters
        ----------
        starts : pd.DataFrame
            Dataframe with columns x and y containing one point per row
        dt : float
            Duration of time step
        name : str, optional
            Default, '', encodes notes for a set of points 
        timer : boolean, optional
            Default = True, activates tqdm progress timer
            
        Attributes
        ----------
        tracks : pd.DataFrame
            Dataframe with columns x,y,t,name,track
            Contains trajectories based on points in `starts`
        '''
        
        # Check if track dataframe needs to be created
        if hasattr(self,'tracks') == False:
            self.tracks = pd.DataFrame()
        
        # Set up iterator
        if timer:
            iterator = tqdm.tqdm(starts.index)
        else:
            iterator = starts.index
            
        for i in iterator:
            x0,y0 = starts.iloc[i]
            track = self.calc_track(x0,y0,dt,tmin)
            trackdf = pd.DataFrame({'x':track[0,:],'y':track[1,:],'t':self.tval,
                                    'track':[i]*track.shape[-1],
                                    'name':[name]*track.shape[-1]})
            
            self.tracks = pd.concat([self.tracks,trackdf])

        Calculate trajectories for a set of points using a constant dt
        
        Parameters
        ----------
        starts : pd.DataFrame
            Dataframe with columns x and y containing one point per row
        dt : float
            Duration of time step
        name : str, optional
            Default, '', encodes notes for a set of points 
        timer : boolean, optional
            Default = True, activates tqdm progress timer
            
        Attributes
        ----------
        tracks : pd.DataFrame
            Dataframe with columns x,y,t,name,track
            Contains trajectories based on points in `starts`
        
Calculate trajectories for a set of points using a constant dt
Parameters

starts : pd.DataFrame
Dataframe with columns x and y containing one point per row
dt : float
Duration of time step
name : str, optional
Default, '', encodes notes for a set of points
timer : boolean, optional
Default = True, activates tqdm progress timer

Attributes

tracks : pd.DataFrame
Dataframe with columns x,y,t,name,track
Contains trajectories based on points in `starts`
Calculate trajectories for a set of points using a constant dt Parameters starts : pd . DataFrame Dataframe with columns x and y containing one point per row dt : float Duration of time step name : str optional Default ' ' encodes notes for a set of points timer : boolean optional Default = True activates tqdm progress timer Attributes tracks : pd . DataFrame Dataframe with columns x y t name track Contains trajectories based on points in ` starts `
def calc_track_set(self,starts,dt,name='',timer=True,tmin=0):
        if hasattr(self,'tracks') == False:
            self.tracks = pd.DataFrame()
        if timer:
            iterator = tqdm.tqdm(starts.index)
        else:
            iterator = starts.index
        for i in iterator:
            x0,y0 = starts.iloc[i]
            track = self.calc_track(x0,y0,dt,tmin)
            trackdf = pd.DataFrame({'x':track[0,:],'y':track[1,:],'t':self.tval,
                                    'track':[i]*track.shape[-1],
                                    'name':[name]*track.shape[-1]})
            self.tracks = pd.concat([self.tracks,trackdf])
def calc_track_set ( self , starts , dt , name = '' , timer = True , tmin = 0 ) : if hasattr ( self , 'tracks' ) == False : self . tracks = pd . DataFrame ( ) if timer : iterator = tqdm . tqdm ( starts . index ) else : iterator = starts . index for i in iterator : x0 , y0 = starts . iloc [ i ] track = self . calc_track ( x0 , y0 , dt , tmin ) trackdf = pd . DataFrame ( { 'x' : track [ 0 , : ] , 'y' : track [ 1 , : ] , 't' : self . tval , 'track' : [ i ] * track . shape [ - 1 ] , 'name' : [ name ] * track . shape [ - 1 ] } ) self . tracks = pd . concat ( [ self . tracks , trackdf ] )
Calculate trajectories for a set of points using a constant dt
Parameters
Calculate trajectories for a set of points using a constant dt Parameters
'''
        Calculate trajectories for a set of points using a constant dt
        
        Parameters
        ----------
        starts : pd.DataFrame
            Dataframe with columns x and y containing one point per row
        dt : float
            Duration of time step
        name : str, optional
            Default, '', encodes notes for a set of points 
        timer : boolean, optional
            Default = True, activates tqdm progress timer
            
        Attributes
        ----------
        tracks : pd.DataFrame
            Dataframe with columns x,y,t,name,track
            Contains trajectories based on points in `starts`
        ''' # Check if track dataframe needs to be created # Set up iterator
self
starts
dt
name
timer
tmin