ValidationDoc
- class emmet.core.vasp.validation_legacy.ValidationDoc(**data)
Bases:
EmmetBaseModelValidation document for a VASP calculation
- Parameters:
builder_meta (EmmetMeta | None)
task_id (Annotated[AlphaID | MPID, BeforeValidator(func=functools.partial(<function _fault_tolerant_id_serde at 0x7f75d76d4cc0>, padlen=8), json_schema_input_type=PydanticUndefined), PlainSerializer(func=functools.partial(<function _fault_tolerant_id_serde at 0x7f75d76d4cc0>, serialize=True, padlen=8), return_type=PydanticUndefined, when_used=always)])
valid (bool)
last_updated (Annotated[datetime, BeforeValidator(func=~emmet.core.utils.convert_datetime, json_schema_input_type=PydanticUndefined)])
reasons (list[DeprecationMessage | str] | None)
warnings (list[str])
data (ValidationDataDict | None)
extra_data (Any)
- classmethod from_task_doc(task_doc, kpts_tolerance=None, kspacing_tolerance=SETTINGS.VASP_KSPACING_TOLERANCE, input_sets=SETTINGS.VASP_DEFAULT_INPUT_SETS, LDAU_fields=SETTINGS.VASP_CHECKED_LDAU_FIELDS, max_allowed_scf_gradient=SETTINGS.VASP_MAX_SCF_GRADIENT, max_magmoms=SETTINGS.VASP_MAX_MAGMOM, potcar_stats=None, bad_tags=None)
Determines if a calculation is valid based on expected input parameters from a pymatgen inputset
- Return type:
Self- Parameters:
task_doc (CoreTaskDoc | TaskDoc | TaskDocument)
kpts_tolerance (float | None)
kspacing_tolerance (float)
input_sets (dict[str, ImportString])
LDAU_fields (list[str])
max_allowed_scf_gradient (float)
max_magmoms (dict[str, float])
potcar_stats (dict[CalcType, dict[str, str]] | None)
bad_tags (list[str] | None)
- Args:
task_doc: the task document to process kpts_tolerance: the tolerance to allow kpts to lag behind the input set settings kspacing_tolerance: the tolerance to allow kspacing to lag behind the input set settings input_sets: a dictionary of task_types -> pymatgen input set for validation pseudo_dir: directory of pseudopotential directory to ensure correct hashes LDAU_fields: LDAU fields to check for consistency max_allowed_scf_gradient: maximum uphill gradient allowed for SCF steps after the
initial equillibriation period
potcar_stats: Dictionary of potcar stat data. Mapping is calculation type -> potcar symbol -> hash value. bad_tags: List of tags for calculations to deprecate
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].