9
9
from emmet .core .tasks import TaskDoc
10
10
from emmet .core .vasp .task_valid import TaskDocument
11
11
from pymatgen .core import Structure
12
+ from pymatgen .io .vasp import Incar
12
13
from typing import Sequence
13
14
14
15
@@ -181,7 +182,7 @@ def check(
181
182
@dataclass
182
183
class CheckVaspVersion :
183
184
"""
184
- Check for common calculation errors.
185
+ Check for common errors related to the version of VASP used .
185
186
186
187
Parameters
187
188
-----------
@@ -191,7 +192,21 @@ class CheckVaspVersion:
191
192
192
193
defaults : dict | None = None
193
194
194
- def check (self , reasons : list [str ], vasp_version : Sequence [int ], parameters : dict , incar : dict ) -> None :
195
+ def check (self , reasons : list [str ], vasp_version : Sequence [int ], parameters : dict , incar : dict | Incar ) -> None :
196
+ """
197
+ Check for common errors related to the version of VASP used.
198
+
199
+ reasons : list[str]
200
+ A list of error strings to update if a check fails. These are higher
201
+ severity and would deprecate a calculation.
202
+ vasp_version: Sequence[int]
203
+ Vasp version, e.g., 6.4.1 could be represented as (6,4,1)
204
+ parameters : dict[str,Any]
205
+ Dict of user-supplied/-parsed INCAR parameters.
206
+ incar : dict | Incar
207
+ INCAR corresponding to the calculation.
208
+ """
209
+
195
210
if (
196
211
vasp_version [0 ] == 5
197
212
and (incar .get ("METAGGA" , self .defaults ["METAGGA" ]["value" ]) not in [None , "--" , "None" ])
0 commit comments