FileMetadata

class emmet.core.vasp.utils.FileMetadata(**data)

Bases: BaseModel

Lightweight model to enable validation on files via MD5.

Parameters:
  • name (str)

  • path (Path)

  • hash (str | None)

classmethod coerce_path(v)

Only coerce to Path. No existence check here.

Return type:

Any

Parameters:

v (Any)

compute_hash()

Compute the hash of the file.

Return type:

str | None

property calc_suffix: str

Get any calculation-related suffixes, e.g., relax1.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].