code: def circle_radii(params, xedge, yedge):
      
      cx = params["cx"].value
      cy = params["cy"].value
      radii = np.sqrt((cx - xedge)**2 + (cy - yedge)**2)
      return radii
docs: Compute the distance to the center from cartesian coordinates
  
      This method is used for fitting a circle to a set of contour
      points.
  
      Parameters
      ----------
      params: lmfit.Parameters
          Must contain the keys:
  
          - "cx": origin of x coordinate [px]
          - "cy": origin of y coordinate [px]
      xedge: 1D np.ndarray
          Edge coordinates x [px]
      yedge: 1D np.ndarray
          Edge coordinates y [px]
  
      Returns
      -------
      radii: 1D np.ndarray
          Radii corresponding to edge coordinates relative to origin