

@verbose
def smooth(self, subject=None, smooth=2, grade=None, subjects_dir=None, n_jobs=1, copy=None, verbose=None):
    'Smooth the label\n\n        Useful for filling in labels made in a\n        decimated source space for display.\n\n        Parameters\n        ----------\n        subject : str | None\n            The name of the subject used. If None, the value will be\n            taken from self.subject.\n        smooth : int\n            Number of iterations for the smoothing of the surface data.\n            Cannot be None here since not all vertices are used. For a\n            grade of 5 (e.g., fsaverage), a smoothing of 2 will fill a\n            label.\n        grade : int, list (of two arrays), array, or None\n            Resolution of the icosahedral mesh (typically 5). If None, all\n            vertices will be used (potentially filling the surface). If a list,\n            values will be morphed to the set of vertices specified in grade[0]\n            and grade[1], assuming that these are vertices for the left and\n            right hemispheres. Note that specifying the vertices (e.g.,\n            grade=[np.arange(10242), np.arange(10242)] for fsaverage on a\n            standard grade 5 source space) can be substantially faster than\n            computing vertex locations. If one array is used, it is assumed\n            that all vertices belong to the hemisphere of the label. To create\n            a label filling the surface, use None.\n        subjects_dir : string, or None\n            Path to SUBJECTS_DIR if it is not set in the environment.\n        n_jobs : int\n            Number of jobs to run in parallel\n        copy : bool\n            This parameter has been deprecated and will be removed in 0.13.\n            Use inst.copy() instead.\n            Whether to return a new instance or modify in place.\n        verbose : bool, str, int, or None\n            If not None, override default verbose level (see mne.verbose).\n            Defaults to self.verbose.\n\n        Returns\n        -------\n        label : instance of Label\n            The smoothed label.\n\n        Notes\n        -----\n        This function will set label.pos to be all zeros. If the positions\n        on the new surface are required, consider using mne.read_surface\n        with label.vertices.\n        '
    subject = _check_subject(self.subject, subject)
    return self.morph(subject, subject, smooth, grade, subjects_dir, n_jobs, copy=copy)

dataset/ETHPy150Open mne-tools/mne-python/mne/label.py Label.smooth/original