Skip to content

Commit

Permalink
fix supercell tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JaGeo committed Nov 22, 2024
1 parent ebb6122 commit d8c4b99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/common/jobs/test_phonons.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@


def test_supercell(si_structure, tmp_dir):
super = get_supercell_size(
supercell = get_supercell_size(
si_structure, min_length=10, max_length=None, prefer_90_degrees=False
)

responses = run_locally(super, create_folders=True, ensure_success=True)
responses = run_locally(supercell, create_folders=True, ensure_success=True)
assert_allclose(
responses[super.output.uuid][1].output, [[3, -1, 0], [0, 4, 0], [-2, -1, 3]]
responses[supercell.output.uuid][1].output, [[3, -1, 0], [0, 4, 0], [-2, -1, 3]]
)


def test_supercell1(si_structure, tmp_dir):
super = get_supercell_size(
supercell = get_supercell_size(
si_structure, min_length=8, max_length=13, prefer_90_degrees=True
)

responses = run_locally(super, create_folders=True, ensure_success=True)
responses = run_locally(supercell, create_folders=True, ensure_success=True)
assert_allclose(
responses[super.output.uuid][1].output, [[3, -1, 0], [0, 3, 0], [-1, -1, 3]]
responses[supercell.output.uuid][1].output, [[3, -1, 0], [0, 3, 0], [-1, -1, 3]]
)


Expand Down

0 comments on commit d8c4b99

Please sign in to comment.