import os

def distance_map_to_gyrus(path_mesh, path_gyral_line, path_distance_map, ):
    cmd = '/hpc/soft/brainvisa/brainvisa_4.6.0/bin/AimsMeshDistance' + ' -i ' + path_mesh + ' -t ' + path_gyral_line + ' -o ' + path_distance_map
    os.system(cmd)
    pass


if __name__ == "__main__":

    from configuration.configuration import (
        SUBJ_LIST,
        SIDES,
        MESHES,
        GYRI,
        GYRAL_CRESTS,
        GEO_DISTS,
    )

    for i, subject in enumerate(SUBJ_LIST):
        for j, side in enumerate(SIDES):
            for k, gyrus in enumerate(GYRI):
                distance_map_to_gyrus(MESHES[subject, side, 'white'], GYRAL_CRESTS[subject, side, gyrus,'cleaned','texture'], GEO_DISTS[(subject, side, "white", gyrus)])


a925cfeb4d819edde21851001f837be12909fccd
<mask token>

<mask token>


def distance_map_to_gyrus(path_mesh, path_gyral_line, path_distance_map):
    cmd = ('/hpc/soft/brainvisa/brainvisa_4.6.0/bin/AimsMeshDistance' +
        ' -i ' + path_mesh + ' -t ' + path_gyral_line + ' -o ' +
        path_distance_map)
    os.system(cmd)
    pass


<mask token>

<mask token>


def distance_map_to_gyrus(path_mesh, path_gyral_line, path_distance_map):
    cmd = ('/hpc/soft/brainvisa/brainvisa_4.6.0/bin/AimsMeshDistance' +
        ' -i ' + path_mesh + ' -t ' + path_gyral_line + ' -o ' +
        path_distance_map)
    os.system(cmd)
    pass


if __name__ == '__main__':
    from configuration.configuration import SUBJ_LIST, SIDES, MESHES, GYRI, GYRAL_CRESTS, GEO_DISTS
    for i, subject in enumerate(SUBJ_LIST):
        for j, side in enumerate(SIDES):
            for k, gyrus in enumerate(GYRI):
                distance_map_to_gyrus(MESHES[subject, side, 'white'],
                    GYRAL_CRESTS[subject, side, gyrus, 'cleaned', 'texture'
                    ], GEO_DISTS[subject, side, 'white', gyrus])

import os


def distance_map_to_gyrus(path_mesh, path_gyral_line, path_distance_map):
    cmd = ('/hpc/soft/brainvisa/brainvisa_4.6.0/bin/AimsMeshDistance' +
        ' -i ' + path_mesh + ' -t ' + path_gyral_line + ' -o ' +
        path_distance_map)
    os.system(cmd)
    pass


if __name__ == '__main__':
    from configuration.configuration import SUBJ_LIST, SIDES, MESHES, GYRI, GYRAL_CRESTS, GEO_DISTS
    for i, subject in enumerate(SUBJ_LIST):
        for j, side in enumerate(SIDES):
            for k, gyrus in enumerate(GYRI):
                distance_map_to_gyrus(MESHES[subject, side, 'white'],
                    GYRAL_CRESTS[subject, side, gyrus, 'cleaned', 'texture'
                    ], GEO_DISTS[subject, side, 'white', gyrus])

import os

def distance_map_to_gyrus(path_mesh, path_gyral_line, path_distance_map, ):
    cmd = '/hpc/soft/brainvisa/brainvisa_4.6.0/bin/AimsMeshDistance' + ' -i ' + path_mesh + ' -t ' + path_gyral_line + ' -o ' + path_distance_map
    os.system(cmd)
    pass


if __name__ == "__main__":

    from configuration.configuration import (
        SUBJ_LIST,
        SIDES,
        MESHES,
        GYRI,
        GYRAL_CRESTS,
        GEO_DISTS,
    )

    for i, subject in enumerate(SUBJ_LIST):
        for j, side in enumerate(SIDES):
            for k, gyrus in enumerate(GYRI):
                distance_map_to_gyrus(MESHES[subject, side, 'white'], GYRAL_CRESTS[subject, side, gyrus,'cleaned','texture'], GEO_DISTS[(subject, side, "white", gyrus)])

