예제 #1
0
def test_get_irrep_mat():
    stokes_number = 7611
    dimension = 3
    symmop = SymmOp([[0, 3, 0, -1], [-3, 3, 0, 1], [0, 0, -3, 1], [0, 0, 0,
                                                                   3]])

    irr = IrrepTools()
    irrep_mat = irr.get_irrep_mat(stokes_number=stokes_number,
                                  dimension=dimension,
                                  symmop=symmop)

    assert irrep_mat.matrix.tolist() == [[0, 0, -1], [-1, 0, 0], [0, 1, 0]]
    assert irrep_mat.label == "F1+"
예제 #2
0
    def test_get_irrep_mat(self):
        stokes_number = 7611
        dimension = 3
        symmop = SymmOp([[0, 3, 0, -1], [-3, 3, 0, 1],
                         [0, 0, -3, 1], [0, 0, 0, 3]])

        irr = IrrepTools()
        irrep_mat = irr.get_irrep_mat(
            stokes_number=stokes_number,
            dimension=dimension,
            symmop=symmop)

        self.assertEqual(irrep_mat.matrix.tolist(), [
                         [0, 0, -1], [-1, 0, 0], [0, 1, 0]])
        self.assertEqual(irrep_mat.label, 'F1+')