def test_centered_group(self): g = Group.randn_lin(mean=Lin(40, 50)) gc = g.centered el = gc.ortensor.eigenlins assert el[0] == Lin(0, 90) and el[1] == Lin(90, 0) and el[2] == Lin( 0, 0)
def test_rdegree_under_rotation(self): g = Group.randn_lin() assert np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree)
def test_rotation_invariant(self): g = Group.randn_lin() self.assertTrue(np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree))
def test_rotation_invariant(self): g = Group.randn_lin() self.assertTrue( np.allclose(g.rotate(Lin(45, 45), 90).rdegree, g.rdegree))
def test_centered_group(self): g = Group.randn_lin(mean=Lin(40, 50)) gc = g.centered el = gc.ortensor.eigenlins assert el[0] == Lin(0, 90) and el[1] == Lin(90, 0) and el[2] == Lin(0, 0)