mne.
add_source_space_distances
(src, dist_limit=inf, n_jobs=1, verbose=None)¶Compute intersource distances along the cortical surface
This function will also try to add patch info for the source space.
It will only occur if the dist_limit
is sufficiently high that all
points on the surface are within dist_limit
of a point in the
source space.
Parameters:  src : instance of SourceSpaces
dist_limit : float
n_jobs : int
verbose : bool, str, int, or None


Returns:  src : instance of SourceSpaces

Notes
Requires scipy >= 0.11 (> 0.13 for dist_limit < np.inf).
This function can be memory and CPUintensive. On a highend machine (2012) running 6 jobs in parallel, an ico5 (10242 per hemi) source space takes about 10 minutes to compute all distances (dist_limit = np.inf). With dist_limit = 0.007, computing distances takes about 1 minute.
We recommend computing distances once per source space and then saving the source space to disk, as the computed distances will automatically be stored along with the source space data for future use.