@@ -32,19 +32,7 @@ def setUp(self):
3232 def test_NumPyBridge_VectorContainer (self ):
3333 "Try to convert a itk.VectorContainer into a Numpy array and back."
3434
35- if not (
36- hasattr (itk .VectorContainer , "ULLF" )
37- and hasattr (itk .PyVectorContainer , "ULLF" )
38- and hasattr (itk .Point , "F3" )
39- and hasattr (itk .VectorContainer , "ULLPF3" )
40- and hasattr (itk .Point , "F2" )
41- and hasattr (itk .VectorContainer , "ULLPF2" )
42- ):
43- # There is insufficient wrapping to perform this test; skip it.
44- print ("Insufficient wrapping to perform itkPyVectorContainerTest" )
45- return
46-
47- v1 = itk .VectorContainer [itk .ULL , itk .F ].New ()
35+ v1 = itk .VectorContainer [itk .IT , itk .F ].New ()
4836 v1 .Reserve (4 )
4937 v1 .SetElement (0 , 1.2 )
5038 v1 .SetElement (1 , 2 )
@@ -78,7 +66,7 @@ def test_NumPyBridge_VectorContainer(self):
7866 self .assertNotEqual (v2_cp .GetElement (0 ), arr_cp [0 ])
7967
8068 PointType = itk .Point [itk .F , 3 ]
81- v_point = itk .VectorContainer [itk .ULL , PointType ].New ()
69+ v_point = itk .VectorContainer [itk .IT , PointType ].New ()
8270 v_point .Reserve (2 )
8371 point = PointType ()
8472 point [0 ] = 1.0
@@ -95,7 +83,7 @@ def test_NumPyBridge_VectorContainer(self):
9583 )
9684
9785 PointType = itk .Point [itk .F , 2 ]
98- v_point = itk .VectorContainer [itk .ULL , PointType ].New ()
86+ v_point = itk .VectorContainer [itk .IT , PointType ].New ()
9987 v_point .Reserve (2 )
10088 point = PointType ()
10189 point [0 ] = 1.0
0 commit comments