Example #1
0
 def test_find_beam_func_arguments_type_error(self):
     with self.assertRaises(TypeError):
         f = find_beam(self.camera, self.rotation_motor, self.linear_motor)
         f.result()
     with self.assertRaises(TypeError):
         f = find_beam(self.camera, self.linear_motor, self.linear_motor2, [1, 2])
         f.result()
     with self.assertRaises(TypeError):
         f = find_beam(self.camera, self.linear_motor, self.linear_motor2, [1, 2, 3] * q.um)
         f.result()
     with self.assertRaises(TypeError):
         f = find_beam(self.camera, self.linear_motor, self.linear_motor2, [1, 2] * q.deg)
         f.result()
Example #2
0
 def test_find_beam_function_arguments(self):
     find_beam(self.camera, self.linear_motor, self.linear_motor2,
               [1, 1] * q.um, [1, 1] * q.um, [1, 1] * q.um)