gbeflow/__init__.py
def calc_embryo_theta(line):
    '''
    Given a line fit to each embryo, calculate the angle of rotation
    to align the embryo in the horizontal axis
    
    Parameters
    -----------
    line : pd.DataFrame
        Dataframe returned by :func:`calc_line` containing columns dy and dx
        
    Returns
    -------
    line : pd.DataFrame
        Input dataframe with an additional column theta in degrees
    '''
    
    line['theta'] = np.rad2deg(np.arctan2(line['dy'], line['dx']))
    return(line)

    Given a line fit to each embryo, calculate the angle of rotation
    to align the embryo in the horizontal axis
    
    Parameters
    -----------
    line : pd.DataFrame
        Dataframe returned by :func:`calc_line` containing columns dy and dx
        
    Returns
    -------
    line : pd.DataFrame
        Input dataframe with an additional column theta in degrees
    
Given a line fit to each embryo, calculate the angle of rotation
to align the embryo in the horizontal axis

Parameters

line : pd.DataFrame
Dataframe returned by :func:`calc_line` containing columns dy and dx

Returns

line : pd.DataFrame
Input dataframe with an additional column theta in degrees
Given a line fit to each embryo calculate the angle of rotation to align the embryo in the horizontal axis Parameters line : pd . DataFrame Dataframe returned by : func : ` calc_line ` containing columns dy and dx Returns line : pd . DataFrame Input dataframe with an additional column theta in degrees
def calc_embryo_theta(line):
    line['theta'] = np.rad2deg(np.arctan2(line['dy'], line['dx']))
    return(line)
def calc_embryo_theta ( line ) : line [ 'theta' ] = np . rad2deg ( np . arctan2 ( line [ 'dy' ] , line [ 'dx' ] ) ) return ( line )
Given a line fit to each embryo, calculate the angle of rotation
to align the embryo in the horizontal axis
Given a line fit to each embryo calculate the angle of rotation to align the embryo in the horizontal axis
'''
    Given a line fit to each embryo, calculate the angle of rotation
    to align the embryo in the horizontal axis
    
    Parameters
    -----------
    line : pd.DataFrame
        Dataframe returned by :func:`calc_line` containing columns dy and dx
        
    Returns
    -------
    line : pd.DataFrame
        Input dataframe with an additional column theta in degrees
    '''
line