79
79
# length of BandRep as vectors should be = number of irreps + 1 (i.e. includes filling)
80
80
@test length (BRS[1 ]) == length (BRS[1 ]. irvec)+ 1
81
81
@test BRS[1 ] == vcat (BRS[1 ]. irvec, dim (BRS[1 ]))
82
- end
82
+ end
83
+
84
+
85
+ # NOTE/TODO : This would be nice to have, but is presently broken because the irrep labels
86
+ # used by BANDREP are not quite the proper ones: e.g., BANDREP will call the 2D
87
+ # glued-together" irrep E the ¹E²E irrep; that's not wrong per se, but it's not quite
88
+ # right either.
89
+ # Similarly, when there's only one A irrep, BANDREP will still include a redundant
90
+ # ₁-subscript; again, not wrong, but not quite right. The right fix seems to be to go
91
+ # through the stored data we retrieve from BANDREP and then fix it there - but that's
92
+ # too annoying for now - so, we just don't test it at the moment.
93
+ #=
94
+ @testset "BandRepSet site-symmetry irreps" begin
95
+ siteir_name(br) = replace(br.label, "↑G"=>"")
96
+ for timereversal in (true)
97
+ for sgnum in 1:230
98
+ brs = bandreps(sgnum, 3; timereversal)
99
+ wps = wyckoffs(sgnum)
100
+ sitegd = Dict(label(wp)=>sitegroup(brs.sgnum, wp) for wp in wps)
101
+ siteirsd = Dict(wp_str=>Crystalline.siteirreps(siteg) for (wp_str, siteg) in sitegd)
102
+ timereversal && (siteirsd = Dict(wp_str => realify(siteirs) for (wp_str, siteirs) in siteirsd))
103
+ for br in brs
104
+ siteirs = siteirsd[br.wyckpos]
105
+ siteirs_labs = mulliken.(siteirs)
106
+ @test siteir_name(br) ∈ siteirs_labs
107
+ end
108
+ end
109
+ end
110
+ end
111
+ =#
0 commit comments