gbeflow/__init__.py
def calc_start_ell(self,scale=1.5,yradius=300,df=None):
        '''
        Customize the fit of an ellipse to an embryo based on the selected endpoints
        
        Parameters
        ----------
        scale : float, optional
            Typically greater than 1 to extend the length between the two points beyond the ends of the embryo
        yradius : int, optional
            Y radius for initial ellipse, default=300
        df : pd.DataFrame, optional
            Contains the columns x and y with 2 rows
        
        Returns
        -------
        self.ell : array
            Array of shape 400x2 that contains position of custom ellipse
        '''

        # Assign global variables if not specified
        if df == None:
            df = self.df

        # Calculate the length of the embryo based on two endpoints
        l = np.sqrt((df.iloc[1].x - df.iloc[0].x)**2 + 
                    (df.iloc[1].y - df.iloc[0].y)**2)

        # Divide l by 2 and scale by scale factor
        self.radius = (l/2)*scale

        # Calculate ellipse at 0,0
        self.ell = self.calc_ellipse(0,0,self.radius,yradius)

        Customize the fit of an ellipse to an embryo based on the selected endpoints
        
        Parameters
        ----------
        scale : float, optional
            Typically greater than 1 to extend the length between the two points beyond the ends of the embryo
        yradius : int, optional
            Y radius for initial ellipse, default=300
        df : pd.DataFrame, optional
            Contains the columns x and y with 2 rows
        
        Returns
        -------
        self.ell : array
            Array of shape 400x2 that contains position of custom ellipse
        
Customize the fit of an ellipse to an embryo based on the selected endpoints
Parameters

scale : float, optional
Typically greater than 1 to extend the length between the two points beyond the ends of the embryo
yradius : int, optional
Y radius for initial ellipse, default=300
df : pd.DataFrame, optional
Contains the columns x and y with 2 rows

Returns

self.ell : array
Array of shape 400x2 that contains position of custom ellipse
Customize the fit of an ellipse to an embryo based on the selected endpoints Parameters scale : float optional Typically greater than 1 to extend the length between the two points beyond the ends of the embryo yradius : int optional Y radius for initial ellipse default = 300 df : pd . DataFrame optional Contains the columns x and y with 2 rows Returns self . ell : array Array of shape 400x2 that contains position of custom ellipse
def calc_start_ell(self,scale=1.5,yradius=300,df=None):
        if df == None:
            df = self.df
        l = np.sqrt((df.iloc[1].x - df.iloc[0].x)**2 + 
                    (df.iloc[1].y - df.iloc[0].y)**2)
        self.radius = (l/2)*scale
        self.ell = self.calc_ellipse(0,0,self.radius,yradius)
def calc_start_ell ( self , scale = 1.5 , yradius = 300 , df = None ) : if df == None : df = self . df l = np . sqrt ( ( df . iloc [ 1 ] . x - df . iloc [ 0 ] . x ) ** 2 + ( df . iloc [ 1 ] . y - df . iloc [ 0 ] . y ) ** 2 ) self . radius = ( l / 2 ) * scale self . ell = self . calc_ellipse ( 0 , 0 , self . radius , yradius )
Customize the fit of an ellipse to an embryo based on the selected endpoints
Parameters
Customize the fit of an ellipse to an embryo based on the selected endpoints Parameters
'''
        Customize the fit of an ellipse to an embryo based on the selected endpoints
        
        Parameters
        ----------
        scale : float, optional
            Typically greater than 1 to extend the length between the two points beyond the ends of the embryo
        yradius : int, optional
            Y radius for initial ellipse, default=300
        df : pd.DataFrame, optional
            Contains the columns x and y with 2 rows
        
        Returns
        -------
        self.ell : array
            Array of shape 400x2 that contains position of custom ellipse
        ''' # Assign global variables if not specified # Calculate the length of the embryo based on two endpoints # Divide l by 2 and scale by scale factor # Calculate ellipse at 0,0
self
scale
yradius
df