def METHOD_NAME(p_sensor_fit, sensor_x, sensor_y):
    #/* sensor size used to fit to. for auto, sensor_x is both x and y. */
    if (p_sensor_fit == 'VERTICAL'):
        return sensor_y;
    return sensor_x;