def _point_cloud_error_balltree(src_pts, tgt_tree):
    dist, _ = tgt_tree.query(src_pts)
    return dist.ravel()
Find the distance from each source point to its closest target point
dataset/ETHPy150Open mne-tools/mne-python/mne/coreg.py/_point_cloud_error_balltree