(fs_subject, hemi, type="patch", freesurfer_subject_dir=None)
Retrive paths for all surfaces for a subject processed by freesurfer

    Parameters
    ----------
    subject : string
        Subject ID for freesurfer subject
    hemi : string ['lh'|'rh']
        Left ('lh') or right ('rh') hemisphere
    type : string ['patch'|'surf'|'curv']
        Which type of files to return
    freesurfer_subject_dir : string | None
        Directory of freesurfer subjects. Defaults to the value for
        the environment variable 'SUBJECTS_DIR' (which should be set
        by freesurfer)
Retrive paths for all surfaces for a subject processed by freesurfer
Retrive paths for all surfaces for a subject processed by freesurfer
def get_paths(fs_subject, hemi, type="patch", freesurfer_subject_dir=None):
    """Retrive paths for all surfaces for a subject processed by freesurfer

    Parameters
    ----------
    subject : string
        Subject ID for freesurfer subject
    hemi : string ['lh'|'rh']
        Left ('lh') or right ('rh') hemisphere
    type : string ['patch'|'surf'|'curv']
        Which type of files to return
    freesurfer_subject_dir : string | None
        Directory of freesurfer subjects. Defaults to the value for
        the environment variable 'SUBJECTS_DIR' (which should be set
        by freesurfer)
    """
    if freesurfer_subject_dir is None:
        freesurfer_subject_dir = os.environ['SUBJECTS_DIR']
    base = os.path.join(freesurfer_subject_dir, fs_subject)
    if type == "patch":
        return os.path.join(base, "surf", hemi+".{name}.patch.3d")
    elif type == "surf":
        return os.path.join(base, "surf", hemi+".{name}")
    elif type == "curv":
        return os.path.join(base, "surf", hemi+".curv{name}")
    elif type == "slim":
        return os.path.join(base, "surf", hemi+".{name}_slim.obj")
def get_paths ( fs_subject , hemi , type = "patch" , freesurfer_subject_dir = None ) : if freesurfer_subject_dir is None : freesurfer_subject_dir = os . environ [ 'SUBJECTS_DIR' ] base = os . path . join ( freesurfer_subject_dir , fs_subject ) if type == "patch" : return os . path . join ( base , "surf" , hemi + ".{name}.patch.3d" ) elif type == "surf" : return os . path . join ( base , "surf" , hemi + ".{name}" ) elif type == "curv" : return os . path . join ( base , "surf" , hemi + ".curv{name}" ) elif type == "slim" : return os . path . join ( base , "surf" , hemi + ".{name}_slim.obj" )