35d7c539c93bd0bff7788fad93ce08686e0cc760,mne/source_space.py,,add_source_space_distances,#Any#Any#Any#Any#,2334
Before Change
// can"t do introspection on dijkstra function because it"s Cython,
// so we"ll just try quickly here
try:
dijkstra(sparse.csr_matrix(np.zeros((2, 2))) , limit=1.0)
except TypeError:
raise RuntimeError("Cannot use "limit < np.inf" unless scipy "
"> 0.13 is installed")
After Change
raise RuntimeError("scipy >= 0.11 must be installed (or > 0.13 "
"if dist_limit < np.inf")
if src.kind != "surface":
raise RuntimeError("Currently all source spaces must be of surface "
"type")
parallel, p_fun, _ = parallel_func(_do_src_distances, n_jobs)
min_dists = list()
min_idxs = list()
logger.info("Calculating source space distances (limit=%s mm)..."
% (1000 * dist_limit))
max_n = max(s["nuse"] for s in src)
if max_n > _DIST_WARN_LIMIT:
warn("Computing distances for %d source space points (in one "
"hemisphere) will be very slow, consider using add_dist=False"
% (max_n,) )
for s in src:
connectivity = mesh_dist(s["tris"], s["rr"])
d = parallel(p_fun(connectivity, s["vertno"], r, dist_limit)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: mne-tools/mne-python
Commit Name: 35d7c539c93bd0bff7788fad93ce08686e0cc760
Time: 2019-04-10
Author: larson.eric.d@gmail.com
File Name: mne/source_space.py
Class Name:
Method Name: add_source_space_distances
Project Name: JasonKessler/scattertext
Commit Name: 6e6178652fe86ad00cd96bfcd97e613ff50816fa
Time: 2018-03-13
Author: Jason.Kessler@cdk.com
File Name: scattertext/termranking/OncePerDocFrequencyRanker.py
Class Name: OncePerDocFrequencyRanker
Method Name: get_ranks
Project Name: JasonKessler/scattertext
Commit Name: 4d6e349e05de71d7473ad2ed853b4f9b40746409
Time: 2020-02-22
Author: JasonKessler@users.noreply.github.com
File Name: scattertext/TermDocMatrix.py
Class Name: TermDocMatrix
Method Name: get_metadata_freq_df