@testing.requires_testing_data
@requires_fs_or_nibabel
def test_vertex_to_mni():
 vertices = [100960, 7620, 150549, 96761]
 coords = np.array([[(-60.86), (-11.18), (-3.19)], [(-36.46), (-93.18), (-2.36)], [(-38.0), 50.08, (-10.61)], [47.14, 8.01, 46.93]])
 hemis = [0, 0, 0, 1]
 coords_2 = vertex_to_mni(vertices, hemis, 'sample', subjects_dir)
 assert_allclose(coords, coords_2, atol=1.0)

@ testing . requires_testing_data @ requires_fs_or_nibabel def test_vertex_to_mni ( ) : vertices = [ 100960 , 7620 , 150549 , 96761 ] coords = np . array ( [ [ ( - 60.86 ) , ( - 11.18 ) , ( - 3.19 ) ] , [ ( - 36.46 ) , ( - 93.18 ) , ( - 2.36 ) ] , [ ( - 38.0 ) , 50.08 , ( - 10.61 ) ] , [ 47.14 , 8.01 , 46.93 ] ] ) hemis = [ 0 , 0 , 0 , 1 ] coords_2 = vertex_to_mni ( vertices , hemis , 'sample' , subjects_dir ) assert_allclose ( coords , coords_2 , atol = 1.0 )
test conversion of vertices to mni coordinates .