From 8d734169dcefe67983b37fe9c46ee992ca6c3716 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Wed, 26 Aug 2026 16:42:22 +0200 Subject: [PATCH] STYLE: Replace ULL with IT as index type in itkPyVectorContainerTest.py Removed the check for sufficient wrapping from "Modules/Bridge/NumPy/wrapping/test/itkPyVectorContainerTest.py". `itk.VectorContainer` is always sufficiently wrapped for `itk.IT`. Follow-up to pull request https://github.com/InsightSoftwareConsortium/ITK/pull/6800 commit 0939d4c24b38e10ff5d65b3578df8447f6df897b "STYLE: Replace UL with IT as index type in itkPyVectorContainerTest.py", (which was about the other "itkPyVectorContainerTest.py" file, in "Filtering/MeshToPolyData/wrapping/test"). --- .../wrapping/test/itkPyVectorContainerTest.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Modules/Bridge/NumPy/wrapping/test/itkPyVectorContainerTest.py b/Modules/Bridge/NumPy/wrapping/test/itkPyVectorContainerTest.py index ff798de46b6..e7f57855c38 100644 --- a/Modules/Bridge/NumPy/wrapping/test/itkPyVectorContainerTest.py +++ b/Modules/Bridge/NumPy/wrapping/test/itkPyVectorContainerTest.py @@ -32,19 +32,7 @@ def setUp(self): def test_NumPyBridge_VectorContainer(self): "Try to convert a itk.VectorContainer into a Numpy array and back." - if not ( - hasattr(itk.VectorContainer, "ULLF") - and hasattr(itk.PyVectorContainer, "ULLF") - and hasattr(itk.Point, "F3") - and hasattr(itk.VectorContainer, "ULLPF3") - and hasattr(itk.Point, "F2") - and hasattr(itk.VectorContainer, "ULLPF2") - ): - # There is insufficient wrapping to perform this test; skip it. - print("Insufficient wrapping to perform itkPyVectorContainerTest") - return - - v1 = itk.VectorContainer[itk.ULL, itk.F].New() + v1 = itk.VectorContainer[itk.IT, itk.F].New() v1.Reserve(4) v1.SetElement(0, 1.2) v1.SetElement(1, 2) @@ -78,7 +66,7 @@ def test_NumPyBridge_VectorContainer(self): self.assertNotEqual(v2_cp.GetElement(0), arr_cp[0]) PointType = itk.Point[itk.F, 3] - v_point = itk.VectorContainer[itk.ULL, PointType].New() + v_point = itk.VectorContainer[itk.IT, PointType].New() v_point.Reserve(2) point = PointType() point[0] = 1.0 @@ -95,7 +83,7 @@ def test_NumPyBridge_VectorContainer(self): ) PointType = itk.Point[itk.F, 2] - v_point = itk.VectorContainer[itk.ULL, PointType].New() + v_point = itk.VectorContainer[itk.IT, PointType].New() v_point.Reserve(2) point = PointType() point[0] = 1.0