httk.atomistic.integrations.vasp.io.outputs¶
Lazy directory-level access to a VASP calculation’s registered files.
VASPOutputs is deliberately not a registered reader: a directory is a
container of inputs, not one VASP file. Payload-returning properties retain no
open handles; the lazy OUTCAR and XDATCAR objects are owned and closed here.
Classes¶
Lazily resolve standard VASP files in a calculation directory. |
Module Contents¶
- class httk.atomistic.integrations.vasp.io.outputs.VASPOutputs(directory, *, precision=None)[source]¶
Lazily resolve standard VASP files in a calculation directory.
File lookup probes each registered compression suffix after the plain filename. Payload readers are created only when their properties are first accessed. The lazy OUTCAR and XDATCAR children are owned here and closed by
close(); payload mappings do not retain open handles.- Parameters:
directory (str | os.PathLike[str]) – Filesystem directory containing VASP output files.
precision (float | None) – Cartesian coordinate precision in Å propagated to the POSCAR/CONTCAR reads (see
read_poscar()).None(the default) keeps the digit-derived precision and, on firstposcar/contcaraccess, emits the same recommendation warningread_poscardoes — relaxed CONTCAR coordinates are written to full double precision, so without a value the symmetry tolerance comes out unrealistically tight. Validated lazily by the reader.
- property poscar: dict[str, Any] | None[source]¶
Return the lazily loaded POSCAR payload, or
Nonewhen absent.The read uses this object’s
precision(warning when it was not supplied).
- property contcar: dict[str, Any] | None[source]¶
Return the lazily loaded CONTCAR payload, or
Nonewhen absent.The read uses this object’s
precision(warning when it was not supplied).
- property outcar: httk.atomistic.integrations.vasp.io.outcar.OutcarFile | None[source]¶
Return the owned lazy OUTCAR reader, or
Nonewhen absent.
- property xdatcar: httk.atomistic.integrations.vasp.io.xdatcar.XdatcarFile | None[source]¶
Return the owned lazy XDATCAR reader, or
Nonewhen absent.