7
7
from collections import defaultdict
8
8
9
9
import pytest
10
- from .... testing_pytest import assert_arrays_equal , clear_and_catch_warnings
10
+ from ...testing_pytest import assert_arrays_equal , clear_and_catch_warnings
11
11
from numpy .testing import assert_array_equal , assert_array_almost_equal
12
12
import pytest ; pytestmark = pytest .mark .skip ()
13
13
@@ -632,7 +632,7 @@ def test_creating_invalid_tractogram(self):
632
632
633
633
with pytest .raises (ValueError ):
634
634
Tractogram (streamlines = DATA ['streamlines' ],
635
- data_per_streamline = {'properties' : properties })
635
+ data_per_streamline = {'properties' : properties })
636
636
637
637
# Inconsistent dimension for a data_per_point.
638
638
scalars = [[(1 , 0 , 0 )]* 1 ,
@@ -650,7 +650,7 @@ def test_creating_invalid_tractogram(self):
650
650
651
651
with pytest .raises (ValueError ):
652
652
Tractogram (streamlines = DATA ['streamlines' ],
653
- data_per_streamline = {'properties' : properties })
653
+ data_per_streamline = {'properties' : properties })
654
654
655
655
# Too many dimension for a data_per_streamline.
656
656
properties = [np .array ([[1.11 ], [1.22 ]], dtype = "f4" ),
@@ -659,7 +659,7 @@ def test_creating_invalid_tractogram(self):
659
659
660
660
with pytest .raises (ValueError ):
661
661
Tractogram (streamlines = DATA ['streamlines' ],
662
- data_per_streamline = {'properties' : properties })
662
+ data_per_streamline = {'properties' : properties })
663
663
664
664
def test_tractogram_apply_affine (self ):
665
665
tractogram = DATA ['tractogram' ].copy ()
@@ -813,16 +813,12 @@ def test_lazy_tractogram_creation(self):
813
813
# function.
814
814
with pytest .raises (TypeError ):
815
815
LazyTractogram (streamlines = streamlines )
816
-
817
816
with pytest .raises (TypeError ):
818
817
LazyTractogram (data_per_point = {"none" : None })
819
-
820
- with pytest .raises (TypeError ):
818
+ with pytest .raises (TypeError ):
821
819
LazyTractogram (data_per_streamline = data_per_streamline )
822
-
823
- with pytest .raises (TypeError ):
824
- LazyTractogram (streamlines = DATA ['streamlines' ],
825
- data_per_point = data_per_point )
820
+ with pytest .raises (TypeError ):
821
+ LazyTractogram (streamlines = DATA ['streamlines' ], data_per_point = data_per_point )
826
822
827
823
# Empty `LazyTractogram`
828
824
tractogram = LazyTractogram ()
0 commit comments