Skip to content

Commit

Permalink
Merge pull request #67 from phonopy/fix-tests
Browse files Browse the repository at this point in the history
Fix tests for the last update of KPOINTS write in velph
  • Loading branch information
atztogo authored Feb 25, 2025
2 parents 93bff74 + 7409c4b commit 29b58d2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test/velph/utils/test_vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_write_kpoints_mesh_mode():
0
Gamma
8 8 8
0.000000000 0.000000000 0.000000000"""
0.0000000000000000 0.0000000000000000 0.0000000000000000"""
kpoints_str = _get_str_of_write_kpoints_mesh_mode(toml_str)
assert kpoints_str == ref_str

Expand All @@ -104,10 +104,10 @@ def test_write_kpoints_mesh_mode_grg():
ref_str = """# Generated by velph
0
Reciprocal
0.000000000 0.045454545 0.045454545
0.045454545 0.000000000 0.045454545
0.045454545 0.045454545 0.000000000
0.000000000 0.000000000 0.000000000"""
0.0000000000000000 0.0454545454545455 0.0454545454545455
0.0454545454545455 0.0000000000000000 0.0454545454545455
0.0454545454545455 0.0454545454545455 0.0000000000000000
0.0000000000000000 0.0000000000000000 0.0000000000000000"""
kpoints_str = _get_str_of_write_kpoints_mesh_mode(toml_str)
assert kpoints_str == ref_str

Expand All @@ -126,11 +126,12 @@ def test_write_kpoints_mesh_mode_grg_tio2_prim():
ref_str = """# Generated by velph
0
Reciprocal
-0.062500000 0.062500000 0.062500000
0.062500000 -0.062500000 0.062500000
0.166666667 0.166666667 -0.166666667
0.000000000 0.000000000 0.000000000"""
-0.0625000000000000 0.0625000000000000 0.0625000000000000
0.0625000000000000 -0.0625000000000000 0.0625000000000000
0.1666666666666667 0.1666666666666667 -0.1666666666666667
0.0000000000000000 0.0000000000000000 0.0000000000000000"""
kpoints_str = _get_str_of_write_kpoints_mesh_mode(toml_str)

assert kpoints_str == ref_str


Expand Down

0 comments on commit 29b58d2

Please sign in to comment.