c234e607afff0dc92de303d45d15a2777ca7f588,nilearn/plotting/surf_plotting.py,,_sample_locations,#,180

Before Change



def _sample_locations(mesh, affine, radius, kind="line", n_points=None):
    Get either ball or line sample locations.
    projector = {
        "line": _line_sample_locations,
        "ball": _ball_sample_locations
    }[kind]
    // let the projector choose the default for n_points
    // (for example a ball probably needs more than a line)
    loc_kwargs = ({} if n_points is None else {"n_points": n_points})
    sample_locations = projector(

After Change


        "line": _line_sample_locations,
        "ball": _ball_sample_locations
    }
    if kind not in projectors:
        raise ValueError(
            ""kind" must be one of {}".format(tuple(projectors.keys())))
    projector = projectors[kind]
    // let the projector choose the default for n_points
    // (for example a ball probably needs more than a line)
    loc_kwargs = ({} if n_points is None else {"n_points": n_points})
    sample_locations = projector(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 6

Instances


Project Name: nilearn/nilearn
Commit Name: c234e607afff0dc92de303d45d15a2777ca7f588
Time: 2017-11-11
Author: jerome@dockes.org
File Name: nilearn/plotting/surf_plotting.py
Class Name:
Method Name: _sample_locations


Project Name: BVLC/caffe
Commit Name: 96c2fe1de80c9752b992c4578a3ce46028d21fc5
Time: 2015-07-23
Author: jonlong@cs.berkeley.edu
File Name: python/caffe/net_spec.py
Class Name: Function
Method Name: _get_name


Project Name: ReactionMechanismGenerator/RMG-Py
Commit Name: c02df66939452dded7d83ac2bb422db76212eb8a
Time: 2020-04-26
Author: kspieker@mit.edu
File Name: rmgpy/tools/mergemodels.py
Class Name:
Method Name: combine_models


Project Name: CNuge/kaggle-code
Commit Name: b7990885d8b26b9404fd9ce952b0b2f005019594
Time: 2018-01-12
Author: nugentc@uoguelph.ca
File Name: california_housing/feature_engineering.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: c234e607afff0dc92de303d45d15a2777ca7f588
Time: 2017-11-11
Author: jerome@dockes.org
File Name: nilearn/plotting/surf_plotting.py
Class Name:
Method Name: niimg_to_surf_data