def get_min_distance(element):
    """
    Gets the minimum sampling distance of the x- and y-coordinates
    in a grid.
    """
    try:
        from scipy.spatial.distance import pdist
        return pdist(element.array([0, 1])).min()
    except:
        return _get_min_distance_numpy(element)
Gets the minimum sampling distance of the x- and y-coordinates
    in a grid.