def get_thickness(subject_dir, n_points):
    '\n    Read thickness information for the given subject and turn it into a vector.\n\n    Data for left and right hemispheres are concatenated.\n\n    Parameters\n    ----------\n    subject_dir : str\n        The directory to files with surface data.\n    n_points : int\n        Defines how many points to take from cortex surface.\n\n    Returns\n    -------\n    : numpy.ndarray\n        Extracted data.\n\n    '
    THICKNESS_FILES = ('rh.thickness.mgh', 'lh.thickness.mgh')
    lh_data = _vectorize_fs_surf(join(subject_dir, THICKNESS_FILES[0]))
    rh_data = _vectorize_fs_surf(join(subject_dir, THICKNESS_FILES[1]))
    n_points = (n_points // 2)
    return np.concatenate((lh_data[:n_points], rh_data[:n_points]), 0)
Read thickness information for the given subject and turn it into a vector.

Data for left and right hemispheres are concatenated.

Parameters
----------
subject_dir : str
    The directory to files with surface data.
n_points : int
    Defines how many points to take from cortex surface.

Returns
-------
: numpy.ndarray
    Extracted data.
def get_thickness(subject_dir, n_points):
    '\n    Read thickness information for the given subject and turn it into a vector.\n\n    Data for left and right hemispheres are concatenated.\n\n    Parameters\n    ----------\n    subject_dir : str\n        The directory to files with surface data.\n    n_points : int\n        Defines how many points to take from cortex surface.\n\n    Returns\n    -------\n    : numpy.ndarray\n        Extracted data.\n\n    '
    THICKNESS_FILES = ('rh.thickness.mgh', 'lh.thickness.mgh')
    lh_data = _vectorize_fs_surf(join(subject_dir, THICKNESS_FILES[0]))
    rh_data = _vectorize_fs_surf(join(subject_dir, THICKNESS_FILES[1]))
    n_points = (n_points // 2)
    return np.concatenate((lh_data[:n_points], rh_data[:n_points]), 0)