Skip to content

Commit

Permalink
showprogress = false in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Nov 5, 2020
1 parent 9a7b40d commit 24186b6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/test_bandstructure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,42 @@ using Arpack

@testset "basic bandstructures" begin
h = LatticePresets.honeycomb() |> hamiltonian(hopping(-1))
b = bandstructure(h, subticks = 13)
b = bandstructure(h, subticks = 13, showprogress = false)
@test nbands(b) == 1

h = LatticePresets.honeycomb() |> hamiltonian(hopping(-1)) |> unitcell(2)
b = bandstructure(h, cuboid(0.99 .* (-π, π), 0.99 .* (-π, π), subticks = 13))
b = bandstructure(h, cuboid(0.99 .* (-π, π), 0.99 .* (-π, π), subticks = 13), showprogress = false)
@test nbands(b) == 3

h = LatticePresets.honeycomb() |>
hamiltonian(onsite(0.5, sublats = :A) + onsite(-0.5, sublats = :B) +
hopping(-1, range = 1/√3))
b = bandstructure(h, subticks = (13, 15))
b = bandstructure(h, subticks = (13, 15), showprogress = false)
@test nbands(b) == 2

h = LatticePresets.cubic() |> hamiltonian(hopping(1)) |> unitcell(2)
b = bandstructure(h, subticks = (5, 7, 5))
b = bandstructure(h, subticks = (5, 7, 5), showprogress = false)
@test nbands(b) == 1

b = bandstructure(h, , :X; subticks = 4)
b = bandstructure(h, , :X; subticks = 4, showprogress = false)
@test nbands(b) == 1

b = bandstructure(h, , :X, (0, π), :Z, ; subticks = 4)
b = bandstructure(h, , :X, (0, π), :Z, ; subticks = 4, showprogress = false)
@test nbands(b) == 1
@test nvertices(b) == 73

b = bandstructure(h, , :X, (0, π), :Z, ; subticks = (4,5,6,7))
b = bandstructure(h, , :X, (0, π), :Z, ; subticks = (4,5,6,7), showprogress = false)
@test nbands(b) == 1
@test nvertices(b) == 113

# complex spectra
h = LatticePresets.honeycomb() |> hamiltonian(onsite(im) + hopping(-1)) |> unitcell(2)
b = bandstructure(h, cuboid((-π, π), (-π, π), subticks = 7))
b = bandstructure(h, cuboid((-π, π), (-π, π), subticks = 7), showprogress = false)
@test nbands(b) == 1

# spectrum sorting
h = LatticePresets.honeycomb() |> hamiltonian(hopping(-1)) |> unitcell(10)
b = bandstructure(h, :K, :K´, subticks = 7, method = ArpackPackage(sigma = 0.1im, nev = 12))
b = bandstructure(h, :K, :K´, subticks = 7, method = ArpackPackage(sigma = 0.1im, nev = 12), showprogress = false)
@test nbands(b) == 1
end

Expand Down

0 comments on commit 24186b6

Please sign in to comment.