@@ -5908,7 +5908,7 @@ def _parse(self, parse_dos: bool, parse_eigen: bool, parse_projected_eigen: bool
5908
5908
self .projected_eigenvalues = None
5909
5909
self .projected_magnetisation = None
5910
5910
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" ))
5912
5912
# TODO: are the other generator tags, like computer platform, stored in vaspout.h5?
5913
5913
self .generator = {"version" : self .vasp_version }
5914
5914
@@ -6016,7 +6016,7 @@ def _parse_params(self, input_data: dict): # type: ignore[override]
6016
6016
calc_potcar = Potcar .from_str (input_data ["potcar" ]["content" ])
6017
6017
self .potcar = calc_potcar if self .store_potcar else None
6018
6018
# The `potcar_symbols` attr is extraordinarily confusingly
6019
- # named, these are really TITELs
6019
+ # named, these are really TITELs # codespell:ignore
6020
6020
self .potcar_symbols = [potcar .TITEL for potcar in calc_potcar ]
6021
6021
6022
6022
# 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):
6202
6202
_ , fname_ext = os .path .splitext (filename ) # type: ignore[type-var]
6203
6203
6204
6204
# 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" }
6206
6206
6207
6207
with zopen (self .filename , "rb" ) as vout_file , h5py .File (vout_file , "r" ) as h5_file :
6208
6208
hdf5_data = self ._parse_hdf5_value (h5_file )
@@ -6223,7 +6223,7 @@ def recursive_to_dataset(h5_obj, level, obj):
6223
6223
6224
6224
# now compress the file
6225
6225
if is_compressed :
6226
- with open (filename ,"rb" ) as f :
6226
+ with open (filename , "rb" ) as f :
6227
6227
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