File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,7 @@ def test_load_complex_file_in_big_endian(self):
170
170
def test_tractogram_file_properties (self ):
171
171
trk = TrkFile .load (DATA ['simple_trk_fname' ])
172
172
assert_equal (trk .streamlines , trk .tractogram .streamlines )
173
- assert_equal (trk .get_streamlines (), trk .streamlines )
174
- assert_equal (trk .get_tractogram (), trk .tractogram )
175
- assert_equal (trk .get_header (), trk .header )
176
- assert_array_equal (trk .get_affine (), trk .header [Field .VOXEL_TO_RASMM ])
173
+ assert_array_equal (trk .affine , trk .header [Field .VOXEL_TO_RASMM ])
177
174
178
175
def test_write_empty_file (self ):
179
176
tractogram = Tractogram (affine_to_rasmm = np .eye (4 ))
Original file line number Diff line number Diff line change @@ -51,21 +51,9 @@ def header(self):
51
51
52
52
@property
53
53
def affine (self ):
54
+ """ voxmm -> rasmm affine. """
54
55
return self .header .get (Field .VOXEL_TO_RASMM )
55
56
56
- def get_tractogram (self ):
57
- return self .tractogram
58
-
59
- def get_streamlines (self ):
60
- return self .streamlines
61
-
62
- def get_header (self ):
63
- return self .header
64
-
65
- def get_affine (self ):
66
- """ Returns vox -> rasmm affine. """
67
- return self .affine
68
-
69
57
@abstractclassmethod
70
58
def is_correct_format (cls , fileobj ):
71
59
""" Checks if the file has the right streamlines file format.
You can’t perform that action at this time.
0 commit comments