Skip to content

Commit b4b19e7

Browse files
committed
actually include symmetry analysis tests in runtest.jl
- rename *stopgap test-file to *manual. add Random to test/Project.toml
1 parent c0806b8 commit b4b19e7

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
Crystalline = "ae5e2be0-a263-11e9-351e-f94dad1eb351"
33
DeepDiffs = "ab62b9b5-e342-54a8-a765-a90f495de1a6"
44
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
5+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
56
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ include("berry.jl") # berry curvature and chern numbers
88
include("spectrum.jl") # spectrum evaluation
99
include("show.jl") # show/display methods
1010
include("gradients.jl") # hopping and momentum gradients
11-
#include("symmetry_analysis.jl") # each tb model is symmetry compatible w/ its constituent EBRs (not yet working)
12-
include("symmetry_analysis_stopgap.jl") # paired-down version of above (interim; see PR #89)
11+
include("symmetry_analysis.jl") # each tb model is symmetry compatible w/ its constituent EBRs
12+
include("symmetry_analysis_manual.jl") # paired-down, manual version of above, testing individual cases
1313

1414
@testset "AbstractArray interface" begin
1515
brs = calc_bandreps(16, Val(2))

test/symmetry_analysis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using Crystalline: free
1111
sgnum = 17 # plane group p6mm
1212
brs = calc_bandreps(sgnum, Val(2)) # band representations
1313
cbr = @composite brs[5] # (2b|A₁) EBR
14-
tbm = tb_hamiltonian(cbr) # tight-binding model (nearest neigbors)
14+
tbm = tb_hamiltonian(cbr) # tight-binding model (nearest neighbors)
1515
ptbm = tbm([0, 1]) # zero self-energy, nonzero nearest-neighbor hopping
1616
ns = collect_compatible(ptbm)
1717
@test only(ns) == SymmetryVector(cbr) == SymmetryVector(CompositeBandRep(ptbm))

0 commit comments

Comments
 (0)