Skip to content

Commit

Permalink
Compress test vasprun.xml files (#3648)
Browse files Browse the repository at this point in the history
* compress some test vasprun.xml

* compress remaining vasprun.xml

* fix file names outside vasp test dir

* compress lobster vasprun (not see used anywhere)

* remove unused lobster vasprun test file
  • Loading branch information
DanielYang59 authored Feb 23, 2024
1 parent 57842a7 commit 5b5ea57
Show file tree
Hide file tree
Showing 91 changed files with 64 additions and 4,975,904 deletions.
2 changes: 1 addition & 1 deletion tests/analysis/test_xps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class XPSTestCase(PymatgenTest):
def test_from_dos(self):
vasp_run = Vasprun(f"{TEST_FILES_DIR}/vasprun.xml.LiF")
vasp_run = Vasprun(f"{TEST_FILES_DIR}/vasprun.xml.LiF.gz")
dos = vasp_run.complete_dos
xps = XPS.from_dos(dos)
assert len(xps) == 301
Expand Down
2 changes: 1 addition & 1 deletion tests/electronic_structure/test_bandstructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def test_reconstruct_band_structure(self):

def test_vasprun_bs(self):
bsv = BSVasprun(
f"{TEST_FILES_DIR}/vasprun.xml",
f"{TEST_FILES_DIR}/vasprun.xml.gz",
parse_projected_eigen=True,
parse_potcar_file=True,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/electronic_structure/test_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class TestBSDOSPlotter(unittest.TestCase):
# Minimal baseline testing for get_plot. not a true test. Just checks that
# it can actually execute.
def test_methods(self):
vasp_run = Vasprun(f"{TEST_FILES_DIR}/vasprun_Si_bands.xml")
vasp_run = Vasprun(f"{TEST_FILES_DIR}/vasprun_Si_bands.xml.gz")
plotter = BSDOSPlotter()
band_struct = vasp_run.get_band_structure(kpoints_filename=f"{TEST_FILES_DIR}/KPOINTS_Si_bands")
ax = plotter.get_plot(band_struct)
Expand Down
2 changes: 1 addition & 1 deletion tests/entries/test_computed_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from pymatgen.io.vasp.outputs import Vasprun
from pymatgen.util.testing import TEST_FILES_DIR

filepath = f"{TEST_FILES_DIR}/vasprun.xml"
filepath = f"{TEST_FILES_DIR}/vasprun.xml.gz"
vasp_run = Vasprun(filepath)


Expand Down
1,813 changes: 0 additions & 1,813 deletions tests/files/Li_no_projected.xml

This file was deleted.

Binary file added tests/files/Li_no_projected.xml.gz
Binary file not shown.
931 changes: 0 additions & 931 deletions tests/files/bad_vasprun.xml

This file was deleted.

Binary file added tests/files/bad_vasprun.xml.gz
Binary file not shown.
164,443 changes: 0 additions & 164,443 deletions tests/files/lifepo4.xml

This file was deleted.

Binary file added tests/files/lifepo4.xml.gz
Binary file not shown.
Loading

0 comments on commit 5b5ea57

Please sign in to comment.