1010import numpy as np
1111from numpy .testing import assert_equal
1212
13- from .. import read_geometry , read_morph_data , read_annot , read_label , write_geometry
13+ from .. import read_geometry , read_morph_data , read_annot , read_label , \
14+ write_geometry
1415
1516
1617have_freesurfer = True
@@ -45,12 +46,13 @@ def test_geometry():
4546 # with respect to read_geometry()
4647 with InTemporaryDirectory ():
4748 surf_path = 'test'
48- create_stamp = "created by %s on %s" % (getpass .getuser (), time .ctime ())
49+ create_stamp = "created by %s on %s" % (getpass .getuser (),
50+ time .ctime ())
4951 write_geometry (surf_path , coords , faces , create_stamp )
5052
5153 coords2 , faces2 = read_geometry (surf_path )
5254
53- with open (surf_path ,'rb' ) as fobj :
55+ with open (surf_path , 'rb' ) as fobj :
5456 magic = np .fromfile (fobj , ">u1" , 3 )
5557 read_create_stamp = fobj .readline ().rstrip ('\n ' )
5658
@@ -65,6 +67,7 @@ def test_geometry():
6567 np .testing .assert_array_equal (coords_swapped , coords )
6668 np .testing .assert_array_equal (faces_swapped , faces )
6769
70+
6871@freesurfer_test
6972def test_morph_data ():
7073 """Test IO of morphometry data file (eg. curvature)."""
0 commit comments