@@ -60,7 +60,7 @@ def test_vispy_accuracy(self):
6060 coorx .STTransform (scale = [2 , 3 , 4 ], offset = [10 , - 5 , 2.2 ], dims = (3 , 3 )),
6161 coorx .AffineTransform (dims = (3 , 3 )), # Use 3D for VisPy compatibility
6262 coorx .SRT3DTransform (scale = [1.5 , 2 , 0.5 ], offset = [1 , 2 , 3 ], angle = 30 , axis = [1 , 1 , 0 ]),
63- coorx .TTransform (offset = [- 5 , 10 , 2 ], dims = (3 , 3 )),
63+ coorx .TTransform (offset = [- 5. , 10. , 2. ], dims = (3 , 3 )),
6464 coorx .NullTransform (dims = (3 , 3 )), # Base class
6565 coorx .STTransform (scale = [1e-10 , 1e10 , - 1e10 ], offset = [1e6 , - 1e6 , 0 ], dims = (3 , 3 )),
6666 coorx .STTransform (scale = [0.001 , 1000 , 1e12 ], offset = [0 , 0 , 1 ], dims = (3 , 3 )),
@@ -79,8 +79,8 @@ def test_vispy_accuracy(self):
7979 # Map coordinates through VisPy transform
8080 # VisPy works with homogeneous coordinates, extend test coordinates as needed
8181 if test_coords .shape [1 ] < 4 :
82- # Add extra dimensions for VisPy (pad with zeros )
83- padded_coords = np .zeros ((test_coords .shape [0 ], 4 ))
82+ # Add extra dimensions for VisPy (pad with one )
83+ padded_coords = np .ones ((test_coords .shape [0 ], 4 ))
8484 padded_coords [:, : test_coords .shape [1 ]] = test_coords
8585 vispy_coords = padded_coords
8686 else :
0 commit comments