Пример #1
0
 def test_output_dtype(self):
     aligned_array = reg.shift_array(
         array=self.shifted_array,
         shift=self.shifts,
         interpolation_method="subpixel",
     )
     self.assertEqual(aligned_array.dtype, self.shifted_array.dtype)
Пример #2
0
 def test_method_roll(self):
     aligned_array = reg.shift_array(
         array=self.shifted_array,
         shift=self.shifts,
         interpolation_method="roll",
     )
     self.assertTrue(
         np.allclose(
             self.reference_array,
             aligned_array,
             rtol=1e-09,
             atol=1e-09,
         ))