-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made all the plotting and util tests
- Loading branch information
1 parent
4dfb147
commit 7cdb1a1
Showing
4 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using DFControl, Base.Test | ||
|
||
@test plot_qe_bands(joinpath(@__DIR__,"../assets/outputs/bands.out")) != nothing | ||
@test plot_qe_kpdos(joinpath(@__DIR__,"../assets/outputs/kpdos.out")) != nothing | ||
|
||
test_bands = read_qe_bands_file(joinpath(@__DIR__,"../assets/outputs/bands.out")) | ||
@test plot(test_bands[1],fermi=3) != nothing | ||
@test plot(test_bands[3],:relative_cart) != nothing | ||
@test plot(test_bands[4],:relative_cryst) != nothing | ||
@test plot(test_bands) != nothing | ||
|
||
t_fermi = read_fermi_from_qe_file(joinpath(@__DIR__,"../assets/outputs/scf.out")) | ||
t_eigval = test_bands[1].eigvals[1] | ||
@test apply_fermi_level(test_bands,3.2)[1].eigvals[1] == t_eigval - 3.2f0 | ||
@test apply_fermi_level(test_bands,joinpath(@__DIR__,"../assets/outputs/scf.out"))[1].eigvals[1] == t_eigval - t_fermi | ||
apply_fermi_level!(test_bands,3.2) | ||
@test test_bands[1].eigvals[1] == t_eigval - 3.2f0 | ||
t_eigval = test_bands[1].eigvals[1] | ||
apply_fermi_level!(test_bands,joinpath(@__DIR__,"../assets/outputs/scf.out")) | ||
@test test_bands[1].eigvals[1] == t_eigval - t_fermi | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters