Skip to content

Commit

Permalink
swap compressed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Dec 12, 2024
1 parent ec6eb06 commit c258807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/io/vasp/test_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,11 +842,11 @@ def test_init(self, compressed: bool):
"""
with ScratchDir("."):
if compressed:
outcar = Outcar(f"{VASP_OUT_DIR}/OUTCAR.gz")
else:
copyfile(f"{VASP_OUT_DIR}/OUTCAR.gz", "./OUTCAR.gz")
decompress_file("./OUTCAR.gz")
outcar = Outcar("./OUTCAR")
else:
outcar = Outcar(f"{VASP_OUT_DIR}/OUTCAR.gz")

expected_mag = (
{"d": 0.0, "p": 0.003, "s": 0.002, "tot": 0.005},
Expand Down

0 comments on commit c258807

Please sign in to comment.