def METHOD_NAME(self, pixel_x, pixel_y=None, eye_distance_mm=None):
    """
    Stimulus positions (pixel_x,pixel_y) are defined in x and y pixel units,
    with the origin (0,0) being at the **center** of the display, as to match
    the PsychoPy pix unit coord type.
    The pix2deg method is vectorized, meaning that is will perform the
    pixel to angle calculations on all elements of the provided pixel
    position numpy arrays in one numpy call.
    The conversion process can use either a fixed eye to calibration
    plane distance, or a numpy array of eye distances passed as
    eye_distance_mm. In this case the eye distance array must be the same
    length as pixel_x, pixel_y arrays.
    """
    eye_dist_mm = self._eye_distance_mm
    if eye_distance_mm is not None:
        eye_dist_mm = eye_distance_mm
    x_mm = self.mmpp_x * pixel_x
    y_mm = self.mmpp_y * pixel_y
    Ah = arctan(x_mm, hypot(eye_dist_mm, y_mm))
    Av = arctan(y_mm, hypot(eye_dist_mm, x_mm))
    return rad2deg(Ah), rad2deg(Av)