def test_rotated(self): '''Test find_rotation_xy function''' rotation = find_rotation_xy(self.pc1, self.pc2) w1, v1 = np.linalg.eig(rotation[0:2, 0:2]) w2, v2 = np.linalg.eig(self.rotation[0:2, 0:2])
def test_perfectly_aligned(self): '''Test find_rotation_xy function''' rotation = find_rotation_xy(self.pc1, self.pc1) assert_almost_equal(rotation, np.eye(3))