Skip to content

Commit 34d5a34

Browse files
precommit
1 parent 641a76f commit 34d5a34

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/pymatgen/io/vasp/outputs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5908,7 +5908,7 @@ def _parse(self, parse_dos: bool, parse_eigen: bool, parse_projected_eigen: bool
59085908
self.projected_eigenvalues = None
59095909
self.projected_magnetisation = None
59105910

5911-
self.vasp_version = ".".join(f"{data['version'].get(tag,'')}" for tag in ("major", "minor", "patch"))
5911+
self.vasp_version = ".".join(f"{data['version'].get(tag, '')}" for tag in ("major", "minor", "patch"))
59125912
# TODO: are the other generator tags, like computer platform, stored in vaspout.h5?
59135913
self.generator = {"version": self.vasp_version}
59145914

@@ -6016,7 +6016,7 @@ def _parse_params(self, input_data: dict): # type: ignore[override]
60166016
calc_potcar = Potcar.from_str(input_data["potcar"]["content"])
60176017
self.potcar = calc_potcar if self.store_potcar else None
60186018
# The `potcar_symbols` attr is extraordinarily confusingly
6019-
# named, these are really TITELs
6019+
# named, these are really TITELs # codespell:ignore
60206020
self.potcar_symbols = [potcar.TITEL for potcar in calc_potcar]
60216021

60226022
# For parity with vasprun.xml, we do not store the POTCAR symbols in
@@ -6202,7 +6202,7 @@ def recursive_to_dataset(h5_obj, level, obj):
62026202
_, fname_ext = os.path.splitext(filename) # type: ignore[type-var]
62036203

62046204
# determine if output file is to be compressed
6205-
is_compressed = fname_ext.lower() in {".bz2",".gz",".z",".xz", ".lzma"}
6205+
is_compressed = fname_ext.lower() in {".bz2", ".gz", ".z", ".xz", ".lzma"}
62066206

62076207
with zopen(self.filename, "rb") as vout_file, h5py.File(vout_file, "r") as h5_file:
62086208
hdf5_data = self._parse_hdf5_value(h5_file)
@@ -6223,7 +6223,7 @@ def recursive_to_dataset(h5_obj, level, obj):
62236223

62246224
# now compress the file
62256225
if is_compressed:
6226-
with open(filename,"rb") as f:
6226+
with open(filename, "rb") as f:
62276227
byte_data = f.read()
6228-
with zopen(filename,"wb") as f:
6229-
f.write(byte_data)
6228+
with zopen(filename, "wb") as f:
6229+
f.write(byte_data)

0 commit comments

Comments
 (0)