gbeflow/__init__.py
def calc_ellipse(self,center_x,center_y,radius_x,radius_y):
        '''
        Calculate a parametrized ellipse based on input values
        
        Parameters
        ----------
        center_x : float
            Center point of the ellipse in x dimension
        center_y : float
            Center point of the ellipse in y dimension
        radius_x : float
            Radius of ellipse in x dimension
        radius_y : float
            Radius of ellipse in y dimension
        
        Returns
        -------
        Ellipse in a 400x2 array
        '''

        # Values to calculate the ellipse over 
        # using parametrized trigonometric fxns
        s = np.linspace(0, 2*np.pi, 400)

        # Calculate the position of the ellipse as a function of s
        x = center_x + radius_x*np.cos(s)
        y = center_y + radius_y*np.sin(s)
        init = np.array([x, y]).T

        return(init)

        Calculate a parametrized ellipse based on input values
        
        Parameters
        ----------
        center_x : float
            Center point of the ellipse in x dimension
        center_y : float
            Center point of the ellipse in y dimension
        radius_x : float
            Radius of ellipse in x dimension
        radius_y : float
            Radius of ellipse in y dimension
        
        Returns
        -------
        Ellipse in a 400x2 array
        
Calculate a parametrized ellipse based on input values
Parameters

center_x : float
Center point of the ellipse in x dimension
center_y : float
Center point of the ellipse in y dimension
radius_x : float
Radius of ellipse in x dimension
radius_y : float
Radius of ellipse in y dimension

Returns

Ellipse in a 400x2 array
Calculate a parametrized ellipse based on input values Parameters center_x : float Center point of the ellipse in x dimension center_y : float Center point of the ellipse in y dimension radius_x : float Radius of ellipse in x dimension radius_y : float Radius of ellipse in y dimension Returns Ellipse in a 400x2 array
def calc_ellipse(self,center_x,center_y,radius_x,radius_y):
        s = np.linspace(0, 2*np.pi, 400)
        x = center_x + radius_x*np.cos(s)
        y = center_y + radius_y*np.sin(s)
        init = np.array([x, y]).T
        return(init)
def calc_ellipse ( self , center_x , center_y , radius_x , radius_y ) : s = np . linspace ( 0 , 2 * np . pi , 400 ) x = center_x + radius_x * np . cos ( s ) y = center_y + radius_y * np . sin ( s ) init = np . array ( [ x , y ] ) . T return ( init )
Calculate a parametrized ellipse based on input values
Parameters
Calculate a parametrized ellipse based on input values Parameters
'''
        Calculate a parametrized ellipse based on input values
        
        Parameters
        ----------
        center_x : float
            Center point of the ellipse in x dimension
        center_y : float
            Center point of the ellipse in y dimension
        radius_x : float
            Radius of ellipse in x dimension
        radius_y : float
            Radius of ellipse in y dimension
        
        Returns
        -------
        Ellipse in a 400x2 array
        ''' # Values to calculate the ellipse over  # using parametrized trigonometric fxns # Calculate the position of the ellipse as a function of s
self
center_x
center_y
radius_x
radius_y